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

I have my laptop constantly connected to power source. I did not have any issues regarding this error back then. It only happen recently. I’m not sure whether my GPU is failing but I’m getting consistent performance when gaming. The error only happens when using Unreal though.