I've torpedoed a few ships in harbors in SH5 with TWoS and this is usually the result:
This happens and the other ships are sunk by it, and stray ship pieces will hit my sub on occasion, but I escape in one piece luckily.
I'm surprised I even made it out of Coastal Waters without dying in it even once!