Does anybody know how to fix d3d device being lost?

Weird. I only get that crash when using UE5