[FIX] GPU CRASH / D3D device removed error

So I faced this issue that if I want to run any of my projects in Unreal Engine 5 it keeps crashing with an error “GPU crashed or D3D device removed”

HERE IS THE FIX:
Either try to run your projects in DX11 (click to see how)

or

Turn off rivatuner and msi afterburner
(the thing that monitors your fps, gpu and cpu temp or usage, etc…)

This worked for me, the problem was especially with rivatuner and afterburner for me.
Give me a response here if one of these worked for you aswell.