Does anybody know how to fix d3d device being lost?

I was having this issue recently with Sea of Thieves and Bodycam, and I found that the problem with me was that I acidentally installed a second video adapter, and I just went into device manager and disabled it. Currently testing to see if it fixed all of my issues with the games.