Unknown message while record camera stream

Does anybody know what this means and how to solve this.
I’ve defined a script and sometimes it works and sometimes it gives this message so it is not stable enough.
image