Arrogance breeds idiocy.
Once upon a time I had a Taurus .22 LR pistol with a tip barrel that was a knockoff of a Berretta.
While at the range it began double firing.
Fortunately I was observing the rules, treating it as loaded, , pointing it only at the target, ensuring my target and behind.
The gun malfunctioned and fired twice per pull on the trigger.
Accidental, yes.
Negligent, no.
Keep the gun pointed in a safe direction. If the gun was defective, The first thing I would look to would be I would hope you would observe NRA Rule one
the manufacturer is negligent not an accident.
lack of cleaning by the operator
On the tv show Sons of Guns, the daddy test fired a Thompson they were rebuilding which continued full auto after he’d released the trigger. Not slam fire, malfunction. in my experience as an IDPA range officer, I’ve seen slam fires in mini 14’s and SKS’s. I’ve seen several FTF’s where the primer was dented. Cooper was sufficient in all these cases.
OTOH, observing a squib... and praying the shooter heard you shout STOP is a real wakeup.
Shoot fast. Shoot straight. Shoot safe.
Practice. Carry. Glock rocks.