it wasnt so much design flaws but rather poor workmanship due to rushed production
a very small number passed quality control so to speak most were left in dry dock for more work
constant allied bombing raids on yards and critical material shortages didnt help the type xxi much either