This issue has been resolved by another fix in 6000.0.13f1 and will be ported through that PR.
This issue has been fixed by another fix in 6000.0.13f1 and will be backported through that fix.
Reproduction steps:
1. Open the attached “repro-IN-76657“ project
2. Build the project with “Scenes/SampleScene” added in the “Scenes In Build“ list
3. After the build finishes, open the “repro_IN-76657/Build“ folder and run the “UnityCrashMay24“ executable
4. Observe the crash