Convert JPG to resized/quality changed JPG error

Agreed, it won't be length in that case.

My guess is something else is getting in the way of things. (It could even be Opus itself, but could also be something else monitoring the files.)

A Process Monitor log of what happens is probably the quickest way for us to diagnose the issue, if you're OK with making one.