Reproduction steps:
1. Open the attached project “CrashRepro“
2. Enter the Play Mode
3. Left-click in the Game view
4. Press the “X“ button
5. Press the “Campaign mode“ button
6. Press the “Ready to fight“ button (bottom right corner)
7. Press the “Start fighting” button (bottom right corner)
Expected result: Different scene is loaded
Actual result: Editor crashes
Reproducible with: 2021.3.27f1, 2022.3.3f1, 2023.1.1f1, 2023.2.0a18
Fixed in: 2023.2.0a19
Reproducible on: Windows 10
First few lines of the Stack Trace: