Detection and Mitigation of Propagating Electrical Discharges Within the Gas Electron Multiplier Detectors of the CMS Muon System for the CERN HL-LHC