Do ships suffer repeated losses from a shared design flaw in the way aircraft sometimes do?
Short answerSuch closely spaced losses are considered rarer, and a flotation problem in one ship normally prompts modifications to its sisters.
NotesClosely spaced losses of ships in the same class are considered rarer than the aircraft accidents in the question's example. Sea conditions often contribute to a sinking, complicating an explanation based on design alone. When one ship reveals a problem staying afloat, the normal response is to modify the rest of the class to address it.