You should consider some sort of swap on ram like zswap rather than thrashing your nvme.
I have a free m.2 slot and may get a cheap optane drive and use that as SWAP. I've read they're not as fast as marketed for this, but at least I wouldn't have to worry about about wearing out my SSD.