What Ryzen 5 CPU? What motherboard? .. power supply? type of cooling? RAM? .. and what speed are they actually running at in Windows? What type of drives? is the firmware up to date on your SSD's?
Is your motherboard's BIOS up to date?
Do you have the latest AM4 chipset drivers installed from AMD.com website?