In the in-game editor of any game, add a new entity and discard it without saving it. You are then unable to add entities again.
Error in console:
In the special case that a projectile type is created and discarded, unit types and item types can still be created but creating another projectile type makes the editor disappear and results in this error: