How to reproduce:
1. Open or create any Unity project
2. Window -> Analysis -> Profiler (Standalone process)
3. Enter Play Mode
4. Press the Profiler "Record" button a few times
Expected results: Profiler pauses and resumes recording
Actual result: Editor crashes
Reproducible with: 2020.3.36f1, 2021.3.6f1, 2022.1.8f1
Not reproducible with: 2021.3.5f1, 2022.2.0a17, 2022.2.0a19
Could not test with:
2019.4.40f1 (Standalone profiler is not available)
2020.3.35f1, 2021.3.4f1, 2022.1.7f1, 2022.2.0a16 (Standalone profiler wasn't working: [Internal link])