Does anybody know how to fix d3d device being lost?

What do you mean by moving the graphics card one slot away from where it was ? Make sure the gpu is still placed on a pcie X16 for full performance.