Duplicate key value violates unique constraint

Hi everyone, some times we are getting this error when we try to save

There was a problem saving the workflow: "duplicate key value violates unique constraint “pk_eded7d72664448da7745d551207"”

the workaround, copy on notepac the unsafe change, reload the page, paste the code and save.