Sound / static from speakers while in game

recently mentionned few time my past experience, when my CPU was on heavy load, my pc started to make huge noise (clacking, sound desync etc), I was suspecting drivers issues, tried various with no fix, tried different speaker thinking that may due to a faulty plug using headset fixed the issues, for month I have been doing with this workaround, until other issues appears like interferences with LAN port …
are you equiped with an UPS ? asking because investing in such kind of equipment probably saved my motherboard and fixed all my issues !