Reproduction steps:
1. Open the attached project ("IN-134326_Repro")
2. Check "Work Offline" in "Project Settings -> Version Control"
3. Open scene "00_Scenes/1_SinglePlayer/02_Night"
4. In the Scene Hierarchy, duplicate any prefabs in "[Environment] -> NightLevel"
5. Make sure the duplicated prefabs are selected, right-click and select "Added GameObjects -> Apply To Prefab ..."
6. If it does not crash, repeat steps 4 and 5
Expected result: The added GameObjects gets applied to the prefab
Actual result: The Editor crashes
Reproducible with: 2022.3.72f1
Not reproducible with: 6000.0.68f1, 6000.3.10f1, 6000.4.0b10, 6000.5.0a7
Reproducible on: Windows 11
Not reproducible on: No other environment tested
Stacktrace:
0x00007ff7a4f2d5d4 (Unity) UndoManager::RegisterUndoInternal
0x00007ff7a4f2ddd6 (Unity) UndoManager::RegisterUndoToFrontOfUndoQueue
0x00007ff7a4f1343c (Unity) RecordObjectCreationToFrontOfUndoQueue
0x00007ff7a353ce18 (Unity) Undo_CUSTOM_RecordObjectCreationToFrontOfUndoQueue
0x000001b2229a47fc (Mono JIT Code) (wrapper managed-to-native) UnityEditor.Undo:RecordObjectCreationToFrontOfUndoQueue (UnityEngine.Object,string)