How to reproduce:
1. Open the attached "IN-159431" project
2. In the Project window, open Assets/Scenes/SampleScene.unity
3. From the menu bar, open Edit > Project Settings > Player
4. Expand the Other Settings section
5. Set the Scripting Backend to IL2CPP
6. Set the Managed Stripping Level to Minimal
7. From the menu bar, open File > Build Profiles
8. In the Build Profiles window, select the Windows platform and click Build
9. Choose an output folder to start the build
10. Observe the Fatal error in the Console
Actual result: The IL2CPP build fails and a fatal error is thrown in the Console window
Expected result: The IL2CPP build completes without errors
Reproducible with: 6000.0.0f1, 6000.0.86f1, 6000.3.30f1, 6000.6.12f1, 6000.7.0b11, 7000.0.0a5
Not reproducible with: 7000.0.0a23
Fixed in: 7000.0.0a7
Reproducible on: Windows 11
Not reproducible on: No other environments tested