Correlation error after publishing the flow

After making changes to a flow, we save and publish the flow.
However, when publishing the flow there is an correlation error, and then it appears that previous version is not saved.

Has anyone else encountered this?