I’ve got a variety of pistols including a Glock. The only way to hurt yourself or someone else by accident is by doing something very stupid.
The gun did not “go off”. A person fired the gun.