Hey @xurc,
Big mistake.
manual:Macro Syncing [Keyboard Maestro Wiki]
DON'T use the .kmsync file to revert macros...
You should be able to recover without too much trouble:
Keyboard Maestro Editor ⇢ File ⇢ Revert Macros
I have no idea why your .kmsync file is out of wack.
I recommend you do a search for “.kmsync” with a real file search utility – not Spotlight.
-Chris