Ahh okay, I didnt know it happened on both, I thought it happened only on 1 stick. Are you using right ports on motherboard, this could cause issues, did you check from motherboard manual what is best port to use when running 1(single channel) stick or 2 sticks(dual channel). Ryzen can be tricky with ram modules, I had also ram issues with Ryzen, getting weird crashes and pc always did dual boot before turning on indicating ram issues. So check if there is a new bios update for your mobo, check if you have right slot used with your ram sticks and pray it starts to work. If still occurs, I would at least change motherboard and ram at the same time, can be frustrated.
Disclaimer: I am not responsible if you break your hardware, these are my opinions and my opinions only.