I have been putting together a new computer the last couple of weeks and apart from the usual streaks of bad luck (first mainboard wouldn't even POST) I now have a really weird problem where I have run out of ideas what else to do.
To put it simply, there is something wrong with the USB ports. I have tried several WiFi dongles (all of which work perfectly fine on other computers) and none of them are able to connect to the WiFi network (signal reception is excellent). There is also other weird problems such as USB devices suddenly disconnecting. All USB ports both front and back are affected (3.1, 3.0, 2.0) and I don't use any fancy USB devices. Just a keyboard and mouse, WiFi dongle and occassionally USB stick/hdd.
My first thought was that it's a bad mainboard or a buggy chipset (AMD A320) so I replaced it with another one with a different chipset (AMD B350). Didn't help. Then I thought it was a problem with the processor (Ryzen 5) because apparently Ryzen chips have USB controllers integrated into the actual CPU chip or something? So I got an Intel i5 7500 (and yet another mainboard, of course) and put that in, but the problem is still the same.
Needless to say that I always updated the BIOS to the newest version and I installed the latest chipset and AMD/Intel USB drivers. Of course I also made sure to have the latest drivers for the respective USB devices. I have also re-installed the operating system several times (Windows 7 and Windows 10, with all the latest updates installed). I tried turning options like "Legacy USB" or "XHCI Turn Off" on and off in the BIOSes.
Apart from these problems, the computer works absolutely fine and it will, for instance, run high-end demanding games just fine for hours without any problems. At this point, the only thing left as far as I can tell is the PSU. Can stuff like this be caused by a malfunctioning PSU? With everything else in the system working absolutely normal (CPU and system fans, system stability, powerful graphics-card)? Or do you have any other ideas what I could try?
I'm really grateful for any help.