Mouse and keyboard freezing regularly with 4.0.4

Did you see this?

Very short advice: If you want to use Ryzen 5000 series and your BIOS version is P1.10 or lower, I suggest you to upgrade BIOS before installing Qubes OS and before configuring the BIOS.