CNC USB keep randomly disconnect while plug Computor notebook to wall plug
More than likely there is a loop antenna being created when you plug in the notebook and this is picking up noise from the CNC (probably the motor drivers, but it might even be the power adaptor itself) and transferring it to the USB data lines.
Unfortunately the USB data lines use single ended signally for requesting a device reset, and so all the nice twisted pair USB cabling and differential interface is defeated by large amount of interference coupling into the lines and triggering a hardware reset.
This is a well known 'flaw' in the design of USB.