With the USS Scorpion, it's speculated that torpedo maintenance testing set off the motor on a torpedo. It was loaded and ejected, but it came back and hit the bow.
When the remains were found, the aft sections had telescoped forward from the pressure.