It could be a relay. Some power supplies have them, but more commonly they are found in audio devices. They physically switch the audio ports so there is no crosstalk or bleedthrough.
Maybe try updating your audio drivers. But I had a computer do this every time on boot up and it is still working. Last I checked, I really should finish putting it back together. As I slowly upgraded, I ended up with all the parts needed to build a 2015 era gaming PC.