I was just looking into this. Seems it's happening across multiple cameras and it's pretty random. I thought it was a threading issue but it doesn't appear to be. As you mentioned it does seem like a short timeout fixes it (even just a couple of seconds). I think a file system process is acting asynchronously and we're not expecting that. So it's clearing the image array as we're writing the image and that makes things angry!
Jared