Dell Inspiron 3520

I’ve bought a KVM switch and multiple usb switches to use my keyboard and mouse between my laptop and gaming PC. My usb devices work without failure on the gaming PC. But whenever I use my devices on my laptop, the devices fail to connect/disconnect/connect after a few minutes of use.

I have gone through multiple switches already so it is the fault of the laptop. The usb 2.0 port on my laptop is not working so I connect the usb cable running from the switch to the other usb 3.0 ports on the laptop. The usb switch I am using right now use usb 3.0 cables and ports. The weird thing is if I plug my keyboard and mouse directly to the laptop usb 3.0 ports, they work just fine without connection problems. Any tips?