Reproduction steps:
1. Open the attached project "repro.zip"
2. Go to 'File > Build Settings' and Build the project
Expected result: Project is built
Actual result: Editor crashes
Reproducible with: 2020.3.27f1
Could not test with: 2019.4.35f1 (due to Downgrade errors), 2021.2.9f1, 2022.1.0b5, 2022.2.0a2 (AmbiguousMatchException)
Notes:
Sometimes these errors appear before crash:
TLS Allocator ALLOC_TEMP_THREAD, underlying allocator ALLOC_TEMP_THREAD has unfreed allocations, size 21386
Editor crashes with no stack trace
Editor sometimes just gets stuck when building