At least two US Navy submarines were sunk by their own torpedoes making circular runs. The main failsafe mechanism disabled the detonators until the weapon had run out a certain minimum distance but obviously that wasn't effective in circular runs.
https://www.usni.org/magazines/naval-history-magazine/2011/j...