Not a hardware fix, but there's memory compression. It sounds like Windows 11 defaults to having memory compression on:
Linux has zswap and zram to do memory compression, which I've mentioned here recently. I don't know of any distros that turn it on by default. It sounds from recent reading like for modern systems with SSD swap, zswap is probably preferable to zram.