Reproduction steps:
1. Open the attached project “CrashRepro“
2. Click on “Directional Light“ in the Hierarchy window
3. Set Shadow Type to “Hard Shadows“
Expected result: Shadow type is set to “Hard Shadows“
Actual result: Editor crashes
Reproducible with: 2021.3.29f1, 2022.3.6f1, 2022.3.7f1, 2023.1.6f1, 2023.1.8f1, 2023.2.0b2, 2023.2.0b5
Not reproducible with: 2021.3.28f1, 2022.1.0a1, 2022.3.5f1, 2023.1.0a1, 2023.1.5f1, 2023.2.0a1, 2023.2.0b1
Reproducible on: Windows 10
Not reproducible on: No other environment tested
First few lines of stack trace:
Notes:
Crashes when opening the Scene if shadows are already on.
Crash can be prevented by creating a Rendering Asset and assigning it as the Scriptable Render Pipeline (Edit > Project Settings > Graphics)