Most B-die won't make 5000+ on AMD. They run a bit higher on Intel chipsets. If you want it to run at 5100-5200, then you need more relaxed timings, so try something like 20-22-22, 20-24-24, or 22-24-24. It will also need high voltages. At this point, it will lose stability because of too high frequency or too high temperature.
For 5000+ RAM clock on 4000/5000 APUs, the best is high binned Micron B or Hynix D as both of them are overclocking higher and require lower voltages. Samsung is great for 1:1 at lower frequencies like 4400-4600 and also runs at tighter timings like CL14-16. If you get good Micron B, then you can set 5600 CL18. Hynix typically runs at 5400 CL20. Great would also be dual-rank Hynix A at 4600 1:1.
I can't help you much as I assume that when you set 5000 stable, then you have enough knowledge to set 5100+. The only problem is the used RAM and/or motherboard. Keep in mind that barely anyone is even trying to stabilize DDR4 at more than 4600, not to mention 5000+. I would work on sub-timings at 4533-4600 1:1 or 4933-5000 1:2. I bet you can get more from that than the next 100MHz at more relaxed timings.