Reproduction steps:
1. Open the attached project “CrashRepro“
2. Open the Scene view
3. Double click on “Assets/Packages/Simple Mouse Flight/Prefabs/Simple Mouse Flight Camera Rig“ prefab
4. Click the back arrow in the Hierarchy window
Expected result: Editor goes back to Scene View
Actual result: The Editor throws a fatal error (GetManagerFromContext: Pointer to object of manager 'RenderSettngs' is NULL (table index 21) UnityEngine.GUILItility:ProcessEvent (int,intptr,bool)) window and crashes
Reproducible with: 2020.3.48f1, 2021.3.22f1, 2022.1.24f1
Not reproducible with: 2022.2.0a1, 2022.2.161f, 2023.1.0b12, 2023.2.0a12
Reproducible on: Windows 10
First few lines of stack trace: