Hello!
I’ve had a similar issue where the editor would freeze and crash after pressing eject/F8 while the game is running. (Play In Editor)
This crash occured on any project when I was runnig UE 5.1 or 5.1.1 with SM6 is enabled, DirectX 12 enabled in the platform setting for windows AND Show->Visualize->Physics Field is enabeled in the viewport.
Error:
Failed to find shader type FPhysicsFieldRayMarchingCS in platform PCD3D_SM6
Tried updating UE, Verifying UE, updating GPU drivers without any luck.
Either switching to DirectX 11 or disabling the Physics Field visualizer solved the problem for me.
Core™ i9-11900K
64,0 GB RAM
RTX 3080TI
+Tested on Win 10 and Win 11 machines with varying specs with the same results.
Hope this can help someone else out!