I doubt this is the issues, I'll get the issue even when playing games like Slay The Spire, Darkest Dungeon and Path of Exile, which aren't really games that would make any GPUs struggle, I've look at performance and my CPU and GPU are using not even 40% of their output when my 2nd monitor is freezing
it's a 4070 super Ti, it really shouldn't be struggling to run many games at all. Or struggling to run two monitors.