Reproduction steps:
1. Open the attached “BugRepro” project
2. Open the “Assets/Test1Scene“ Scene
3. Enter The Play Mode
4. Observe the Console window
Expected result: No exceptions are thrown
Actual result: ArgumentOutOfRangeException is thrown
Reproducible with: 3.0.0-pre.5, 3.0.1 (2022.3.17f1, 2023.2.6f1, 2023.3.0b3)
Not reproducible with: 3.0.0-pre.4 (2022.3.17f1, 2023.2.6f1, 2023.3.0b3)
Couldn't test with: 2.9.7 (2021.3.34f1) (undefined scripts after changing version)
Reproducible on: Windows 11
Not reproducible on: No other environment tested