This could be caused by a faulty or damaged cable, so try swapping it out for a new one. It could also be caused by electromagnetic interference, so try moving any nearby electronic devices away from your headphones.