The issue is already fixed on unity 6, but won't be backported to 23.2
Reproduction steps:
1. Install RenderDoc and open it
2. Open the “ReproProject“ project
3. Right-Click on the Scene View tab
4. Press the “Load RenderDoc” button
5. Observe the Scene View and the Console window
Expected result: The Unity process gets attached to the RenderDoc and no errors are thrown in the Console window
Actual result: The Scene View becomes gray and “NullReferenceException“ errors are thrown in the Console window