The problem with the ‘it was a Glock’ assertion is this: The NYPD used to have just as many accidental/negligent discharges... back in the 1970s. When all they had were revolvers with heavy DA pulls.
The problem isn’t the weapon.
Actually, almost every time the problem is a loose nut on the trigger.