This happens with any headphone/earbud/headset under the right conditions, namely it being very dry or cold, which can cause a ground loop.
Your headphones aren't broken, so no need for alarm, it's just discharge from nearby currents.
Make sure your headphone cord isn't touching any other wires or cords, and try to re-arrange any USB devices to different ports on your PC.