So now I'm curious, because I get this exact problem in certain games. The thing is, it has nothing to do with VRAM or the GPU! The real problem in my case is that the CPU appears to be either overheating or just getting into a bad state and crashing the running process.
For me, this happens during shader compilation when you first launch a game. I can name quite a few with this issue. Hogwarts Legacy, The Last of Us, Alan Wake 2 (not quite as frequent), Metro Exodus, Horizon Zero Dawn, Watch Dogs Legion (sometimes), and I'm sure there are many others that I've never tried and thus don't have personal experience with.
The solution, in every case I've encountered, is to set the game's affinity to just the P-cores, during shader compilation. Once that's done, reset the game's affinity to all cores. But I can see just looking at the LED POST codes on my motherboard (which show CPU temps after the initial boot process), that the CPU hits 99+ C when affinity isn't set, and anything in the high 90s seems likely to cause a crash.
I'm not entirely sure if it's just with my motherboard, or if it's something with the 13900K. I suspect it's a motherboard setting, like being too aggressive with boosting and voltages or current. And since motherboard BIOS code often gets at least partially shared between a lot of different models from the same vendor, and even across vendors, it could be that lots/most Z790 motherboards are impacted.