Unreal Engine is exiting due to D3D device being lost. (Error: 0x0 - 'S_OK')

It’s been 4 years but I started having the same issue out of nowhere with every game that uses unreal engine, did you manage to find a solution? Also setting the scaling to 100% in windows does fix it but it makes other stuff work weird so it’s more of a temporary solution