UE5 gpu crashed or d3d device removed

I had this issue with my RTX 3060.
The fix for me was in the Nvidia settings.
I opened up Nvidia control panel settings then under 3d settings i clicked “Restore”
That was over a week ago and not had an issue since.
I wanted to adjust my graphics card settings but it was conflicting with UN5 for some reason.