Reproduction steps:
1. Open the attached project "ReproProj"
2. Open Windows > General > Test Runner
3. In Test Runner window press “Run All”
Expected result: Test Runner tests are completed
Actual result: Editor crashes/freezes
Reproducible with: 2021.3.29f1, 2022.3.6f1, 2023.1.7f1
Couldn't test with: 2023.2.0b3, 2023.3.0a4 - project script errors
Reproducible on: macOS Monterey 12.5 (M1 Max), macOS 12.5 (Intel)
Not reproducible on: Windows 11