Help! I am getting the GPU Crashed or D3D Device removed error

This just randomly happened while I was in my project and I have tried things with the registry to solve this, it starts but I can’t go to lit mode. I am stuck in unlit more and if I do go into lit mode it instantly crashes unless I have scalibility shadows on low, I know I am not running out of VRAM since it only uses 4 out of 12 gb’s. I can’t use ue5 if this doesn’t work

I may have found a way, direct x 11 then I updated to the latest version. I don’t know what was causing this.