My issue is frequent crashing/freezing, meaning I can’t play longer than a few minutes at a time
Could be overheating.
I use AMD hardware.
However, a few years back, I had a particular AMD card that, using its default onboard power profiles, tended to overheat with the default on-card power profiles in games which really exercised the thing; I understand that the vendor that made these cards had issues with insufficient thermal paste or the thermal paste detaching or something. That's the card vendor's fault -- the card shouldn't reach a point where it can get into trouble via overheating, but regardless, it was still a problem. Some people disassembled the thing and put more thermal paste on. I forced the thing to a more-conservative power profile, and that worked.
I haven't done this with Nvidia hardware, but it sounds like nvidia-smi
can do this:
https://forum.level1techs.com/t/how-to-set-nvidia-gpu-power-limit-nvidia-smi/131467
Then to query your power limit:
sudo nvidia-smi -q -d POWER
And to set it
sudo nvidia-smi -pl (base power limit+11)
Might try restricting the power usage and see if your crashing stops.
EDIT: Might also try turning down in-game graphical settings. That'd decrease load and maybe also avoid any potential overheating issues, though it'd be a less-reliable option than the above, as you probably don't want to make your system freeze just by running some program that happens to throw a lot of load at your card. That also might avoid any issues that the drivers could have that the game is tickling. Worth a shot, at least from an experimentation standpoint, if you are looking for things to try.
EDIT2: If those do successfully address your problem and it looks like it's an overheating problem, you might also try figuring out whether you can improve the cooling situation on the hardware side, rather than sacrificing performance for stability.