So Godot does not like circular references. If your main scene is part of a circular reference it corrupts the project and makes the scene un-openable.
The Godot dev’s say this is not a bug. But it sure feels like one.
Don’t try and test your scene by having Scene A load Scene B which then loads Scene A.
[4.0 RC 1] Can’t switch to packed scene that was started in using change_scene_to_packed #72921**
Trying to manually load new scenes to toggle back and forth between two scenes fails #83079**
A better method is described in this article.