After a few attempts at reproducing this, I think I’ve got it down.
Open the animation editor, select a rig, go to the constraint menu, and select one of them and set anywhere in the place. This should close the editor and any attempt to ctrl+z will not happen. Even future events, like creating parts, moving them, etc., can not be undone.
Posted in Bulletin board due to New Member status.