Does anybody know how to fix d3d device being lost?

Like others have mentioned, install the Studio Driver for NVIDIA using GeForce Experience instead of the Game Ready driver. Then you do need to update the registry like mentioned above only 60s isn’t good enough for me and increased to 120s. Make sure to restart your computer after installing the Studio Driver.