U.S. Navy submarine USS Tang had racked up the best record of sinking Japanese ships across the Pacific since 1944. However, Tang’s run came to an end during its fifth and final war patrol in the Taiwan Strait. The final torpedo it launched was a Mark 18 electric torpedo was known to have issues. The malfunctioning torpedo suddenly breached the surface and turned, heading straight for the Tang. About 20 seconds later, the torpedo struck the aft torpedo room.
Source: https://taskandpurpose.com/history/navy-submarine-uss-tang-sinking