I have a Windows 10 computer with a MSI B450 TOMAHAWK MAX motherboard. If I plug my usb keyboard and usb mouse to the computer via an usb hub, both the mouse and keyboard will freeze (not respond or respond with a lag) for a second or less every few minutes or even more frequently. If I plug those directly to the computer, there is no freezing. Those freezes only appear to be affecting mouse and keyboard, the computer works normally when they happen.
I've tried different mouses, keyboards and different hubs (powered and not), but it doesn't seem to make a difference. I wasn't able to recreate the problem on another computer using the same usb hub, mouse and keyboard.
I've tried disabling "Legacy support" in BIOS and "Selective Suspension" in Windows power settings, but it doesn't appear to make any difference.
Any idea what could be causing the issue and how to resolve it?