What could cause someone with a defibrillator to have incessant coughing spasms?

It Varies. Sometimes the leads for the defibrillators may be positioned near the phrenic nerve - this would cause a hiccup-type sensation when the device paced.