Yes, disable that option could be a workaround but then it’s disabled for new media too and you don’t want to manually optimize all the new images especially if you have a lot of them daily.
Just to give you some more context, the error happens with WordPress 4.8.7, enable-media-replace 3.2.7 and resmushit-image-optimizer 0.1.22.
Any chance to get an answer here?