Tried it with a couple of PNGs and can not reproduce the error.
The image is OK? (Can you open it with Preview for example?)
You have tried it with different images, right?
Have you tried it in different locations (folders)?
BTW, ImageOptim doesn’t read TIFFs. Didn’t know this. (Resizing works fine though.)