Even now, the editor continues to produce a runtime error each time!
I know the reason – it started after I replaced a file, as suggested here, to unlock all objects in the editor. I didn't think to save the original file anywhere... Now I don't know how to fix it. Reinstalling the game didn't help (it was also corrupted).
Auto-translated