Sounds like a ground loop. Buy an external DAC or a ground loop isolator https://www.amazon.com/Mpow-Ground-Isolator-Stereo-System/dp/B019393MV2/ref=pd_sbs_263_1?_encoding=UTF8&pd_rd_i=B019393MV2&pd_rd_r=MD9BD2WFM2FB078PRNVD&pd_rd_w=6FJdz&pd_rd_wg=xE15r&psc=1&refRID=MD9BD2WFM2FB078PRNVD
Aha you already bought a DAC, the problem is that you are probably transfering the loop from your computer to the DAC through the USB. If your DAC supports optical spdif that should probably fix it