I would update the bios, to at least Version 5204 2019/08/07 (after this the bios add ryzen 3000 support which currently you may not / don't need - see my latter note)
https://www.asus.com/us/Motherboards/ROG-STRIX-B350-F-GAMING/HelpDesk_BIOS/The AMD chipset drivers v18.50.16 (windows) required updated bios to Version 4602 which I suspect may be the cause of your random freeze issue in your chosen OS. Your bios is going to be long before the one I recommend above. The latest bios in 2018 was Version 4207 (which I suspect your motherboard bios will predate this).
The linux bug was caused by/in RdRand function, I would assume that, AMD had a hardware bug only for it's Family 15h (Bulldozer) and Family 16h (Jaguar) processors, as under Linux, they have now decided to no longer advertise support. However for the AMD Zen family, it was microcode bios update for RdRand. However I am unsure which version of the bios included the patch and you may need to consider the latest if my suggestion above does not fix the freeze issue. There was test script for linux users, to check the patch worked (maybe google it) the function is supposed to give random numbers but was only giving one answer (this is my understanding, since it never affected me or my OS I'm relying on what I have read about the issue.)
Please be patient with me I don't use your OS but trying to help you out and this is the first place I would start and the reason why this might be cause of your random freezing issue.
Hope you find my information helpful.