I have 64gb in my linux machine and have managed to hardlock it a bunch of times exhausting the ram. Couldn't even REISUB a couple of times. The OOM killer stuff in Linux just doesn't work anymore by what I can gather.
Buying more ram is no longer an option, so I added a 128gb swap partition on nvme. I incorrectly assumed with 64gb I didn't even need swap. No crashes since.
If you don't want to move partitions around, you can add a swap file. ChatGPT or whatever can give instructions.