There are two different issues. Yes QC should be catching this, and perhaps is (this might be one either not sampled or which passed). QC isn't magical, and as I learned from working in the pharma business: "You can't test quality into a product".
This seems from reports to be a more serious QA issue. Incoming materials QC is part of QA and presumably this passed (the automotive glass suppliers are pretty used to making auto glass and most cars don't have this problem). But QA should have reviewed the design so that breaking stresses can't occur. That (lack of proper design review) is the problem, and appears from reports to be chronic through certain parts of the Tesla process.
When I say "certain parts of the process", for example I mean battery fires are pretty rare so presumably that team takes QA seriously (batteries are no joke!). While body defects and failures are rampant and very widely attested. (I believe the big touchscreens also have a lot of problems but as I don't follow it closely I might have just seen an unusual number of complaints.)
So: fixable, thought there doesn't appear to be a culture of addressing these things.