When you fit four DIMMs instead of just two DIMMs, you often have to set a lower XMP frequency.
Are the four DIMMs from a matched set of four, or two different kits of two DIMMs. Ideally, all four DIMMs should be from the same production run, then matched by the manufacturer and sold as a kit of four. This is not the same as buying two kits of two DIMMs at the same time. You cannot guarantee they'll be matched, even if they have the same part number.
The JEDEC standard for your DIMMs is probably 2133MHz or 2400MHz if they're DDR4 and a suitable starting point.
Disable XMP. Set the memory frequency back to JEDEC default (2133 or 2400) and see if the computer boots up with four DIMMs.
If you're successful, enable XMP and set it to step higher than stock, e.g. 2400MHz (if PC booted at 2133MHz) or 2600MHz (if PC booted at 2400MHz).
Keep increaing the XMP frequency until the system BSODs, i.e 2800MHz, 2,933MHz, 3,000MHz.