Steps to reproduce:
1. Create new Unity project
2. Install Entities Graphics package via Package Manager
3. Once installed, in Hierarchy window create 3 New Sub Scenes (for example: New Sub Scene, New Sub Scene 2, New Sub Scene 3)
4. In each Sub Scene add a Cube GO
5. Completely undo created Cubes and 3 New Sub Scenes using keyboard shortcut (command+Z)
6. Redo using keyboard shortcut (command+shift+z)
7. Observe the Console window
Actual results: Error “Assertion failed on expression: 'targetScene != nullptr’” is thrown in the Console window after redoing Cubes and Sub Scenes creation
Expected results: No errors are thrown in the Console after redoing Cubes and Sub Scenes creation
Reproducible with versions: 6000.0.66f2, 6000.3.8f1, 6000.4.0b8, 6000.5.0a6
Tested on (OS): macOS Silicon Tahoe 26.2 (M1)