Motors produce a lot of electrical noise, motors with VFDs produce a whole lot of electrical noise. What is happening is that the noise from your VFD is killing the USB communication. First make sure everything is Earth grounded properly and that no high voltage cables (VFD, stepper motors, etc) are near the USB cable. Use as short of a USB cable as you can.