KVM switch error on Debian Stretch

I have two computer connected to a single keyboard/mouse with a kvm switch (an iogear 2-port usb vga). The keyboard and the mouse are very basic model from Microsoft that came with the computer. Most of the time, I switch, it take a second or two and then it work.

But sometime, when switching back to my main computer on Debian Stretch, the mouse will work and I have to switch back and forth 2-3 times for it to work again.

In dmesg I have this error message when this happend.

[14189.730140] hid-generic 0003:045E:0084.0030: hiddev0,hidraw1: USB HID v1.11 Device [Microsoft Microsoft Basic Optical Mouse] on usb-0000:00:14.0-6/input0
[14209.021429] usb 1-5: USB disconnect, device number 48
[14209.339453] usb 1-6: USB disconnect, device number 49
[14210.635420] usb 1-5: new low-speed USB device number 50 using xhci_hcd
[14210.781783] usb 1-5: New USB device found, idVendor=045e, idProduct=0752
[14210.781788] usb 1-5: New USB device strings: Mfr=1, Product=2, SerialNumber=0
[14210.781791] usb 1-5: Product: Wired Keyboard 400
[14210.781793] usb 1-5: Manufacturer: Microsoft
[14210.786474] input: Microsoft Wired Keyboard 400 as /devices/pci0000:00/0000:00:14.0/usb1/1-5/1-5:1.0/0003:045E:0752.0031/input/input54
[14210.844097] hid-generic 0003:045E:0752.0031: input,hidraw0: USB HID v1.11 Keyboard [Microsoft Wired Keyboard 400] on usb-0000:00:14.0-5/input0
[14210.963415] usb 1-6: new low-speed USB device number 51 using xhci_hcd
[14211.113562] usb 1-6: New USB device found, idVendor=045e, idProduct=0084
[14211.113567] usb 1-6: New USB device strings: Mfr=1, Product=2, SerialNumber=0
[14211.113570] usb 1-6: Product: Microsoft Basic Optical Mouse
[14211.113573] usb 1-6: Manufacturer: Microsoft
[14211.118728] hid-generic 0003:045E:0084.0032: unknown main item tag 0x0
[14211.118751] hid-generic 0003:045E:0084.0032: unknown main item tag 0x0
[14211.118769] hid-generic 0003:045E:0084.0032: unknown main item tag 0x0
[14211.118797] hid-generic 0003:045E:0084.0032: unknown main item tag 0x0
[14211.118815] hid-generic 0003:045E:0084.0032: unknown main item tag 0x0
[14211.118883] hid-generic 0003:045E:0084.0032: collection stack underflow
[14211.118902] hid-generic 0003:045E:0084.0032: item 0 0 0 12 parsing failed
[14211.118938] hid-generic: probe of 0003:045E:0084.0032 failed with error -22

Other than buying a better kvm switch, is there a way to fix it? This problem only occur on my main computer not on the second one (Debian 8) on the kvm switch.

Still having the issue, and it’s getting very annoying.
Quick updates:
Using lsusb, when the mouse is not working, It still show that the mouse is connected like so

Bus 002 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
Bus 001 Device 015: ID 045e:0084 Microsoft Corp. Basic Optical Mouse
Bus 001 Device 014: ID 045e:0752 Microsoft Corp. Wired Keyboard 400
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub

The unknow main item tag 0x0 error will not always be there, even when the mouse is having problem.
On my second computer, I still didn’t get the problem, and I tried to switch the connector and still have only problem on my newest computer (debian 9)

After searching on some forum, I try to disable usb autosuspend, but no result, still have the same problem.

Any help will be greatly appreciated.
Thank you