A sweet spot might be 256GB at DDR5-5200 with 2 kits of Crucial CP2K64G56C46U5. I found these settings stable: