Problem using USB communication while Vin is powered with external PSU

Hello all I am having a problem with usb communication to pc if 12V power is connected to Vin pin on Arduino Nano.

Windows keep saying that there is something wrong with the attached USB device.

Is there a work-around for this?

Any help is appreciated

Best regards Per-Jarle