Reproduction steps:
1. Open the attached project “IL2CPPbug“
2. Open the Scene “Assets/Scenes/SampleScene”
3. Build and run the Player (File > Build And Run)
4. Observe the Player logs
Expected result: The Player runs without errors
Actual result: NotSupportedException is logged
Reproducible with: 2021.3.29f1, 2022.3.7f1, 2023.1.9f1, 2023.2.0b5
Reproducible on: Windows 11
Not reproducible on: No other environment tested