D3D device being lost crash and other game crashes

All crashes of this kind that I’ve experienced (PUBG, Dead by Daylight, Fortnite…) are solved by simply limiting the fps rate in the game (or syncing with the screen refresh rate which is equivalent). If I let the system work without placing a limit it goes as high as 240fps but it will eventually crash (Dead by Daylight even on menu screens).