With this being and AMD build default slots are slots 2 and 4, best bet to check this would be having slots 1, 2 and 4 populated
Trying every stick in the same slot and leaving rest empty eliminates the other factors.
Almost all if not all dual channel motherboards with 4 slots use 2 and 4 as default, not just AMD.
On my x570 board every stick individualy works in every slot or two sticks in any combination of the slots but 4 sticks cause me issues unless I bump up the DRAM Current Capability after which I can even OC by quite a bit. The issue with 4 sticks on my system makes my PC randomly shut down unless I do what I described (consistent with every BIOS version as well).