Use a self powered USB2 / USB3 hub nearby machine and extend cable length between PC and hub.Don't use simple USB cable extender.USB Isolator 1kV is a good solution too.It can solve grounding problems between PC and machine.https://www.wut.de/e-33001-ww-daus-000.php