Reproduction steps:
1. Open the attached project “MonoScriptCrash“
2. Click ‘Tools/Build Win64' in Top Menu bar
3. Copy the contents of ExtraAssets folder into Assets folder
4. Click ‘Tools/Generate Files and Copy' in Top Menu bar
5. Copy ‘auto_test_win.bat’ file which is located in root of the project into 'product’ folder
6. Run 'auto_test_win.bat’ script
7. Observe Player
Expected result: The Player doesn't crash
Actual result: The Player periodically crashes after a few runs
Reproducible with: 2021.3.33f1, 2022.3.16f1, 2023.2.5f1, 2023.3.0b2
Reproducible on: Windows 11, Windows 10
Not reproducible on: No other environment tested