It's commonly called coil whine. You might want to tweak BIOS and try to disable C-states or such power saving features of the processor. The main problem is a physical problem in your motherboard. Having linux can change the sound but won't fix this issue. Only real fix I see is to get a new mb eventually. But if Linux reduces it, go for it!
https://randompctips.blogspot.com/2021/04/how-to-get-rid-of-coil-whine-by.html
https://en.wikipedia.org/wiki/Electromagnetically_induced_acoustic_noise