That's almost certainly a driver issue, the NVIDIA drivers are trying to transcode tasks to the iGPU and its poor performance causes Windows/Dx to think the whole system is overloaded and begin recovery procedures.
What you should do first, if you haven't already, is disable the iGPU in the BIOS, but that might not be enough.
Try disabling the NVIDIA Optimus enhancements flags in the registry
HKEY_LOCAL_MACHINE\SOFTWARE\NVIDIA Corporation\Global\CoprocManager\
HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\NVIDIA Corporation\Global\CoprocManager\
Set both "OptimusEnhancements" dword entries to 0 and see if that stops it. (or you could disable transcoding for each particular game by setting the appropriate flags on the driver profile with nvidiaInspector)
If that doesn't help, then it's probably not the actual game causing the problem directly, but some background task like DWM.exe feeling neglected and acting up. A few things could help, disabling the Multimedia Class Scheduler (MMCSS) is probably the simplest and easiest. You can also run a background task priority sorter, like Process Lasso, which is very effective.
Beyond that, as a last resort, you could try messing directly with DirectX's registry settings, but I don't recommend it, that should be solvable with less obstructive means.