Reproduction steps:
1. Open the attached “BugRepro” project
2. Open the “Assets/InfiniteReloadDomain.unity” Scene
3. Open the context menu of “Assets/InfiniteReloadDomain.cs” Script and select “Reimport”
Expected result: The Editor completes Domain Reload or a warning message is logged
Actual result: The Editor hangs on Domain Reload
Reproducible with: 2021.3.40f1, 2022.3.36f1, 6000.0.9f1
Reproducible on: Windows 11
Not reproducible on: No other environments tested