How to reproduce:
1. Open the attached “IN-134106“ project
2. Open the “OutdoorsScene“ scene
3. In the Hierarchy, select the “Terrain“ GameObject
4. In the Inspector, select the “Paint Details“ tool in the Terrain Component
5. In Scene view, click on the “Terrain” GameObject
6. Observe the Editor
Actual result: The Editor is stuck in an endless loading loop
Expected result: The Editor does not paint the incompatible Detail Mesh on the Terrain
Reproducible with: 2023.1.0a1, 6000.0.68f1, 6000.3.9f1, 6000.4.0b9, 6000.5.0a7
Reproducible on: Windows 11
Not reproducible on: No other environments tested
Note: Only reproduces when Detail Mesh contains a prefab with a 2D Mesh