cock off

Advanced (C1) informal

For a gun to go off by accident when it's ready to fire; or (in dialect) to go away.

"The hunter's rifle cocked off when he slipped on the wet ground."