I am personally suprised a GLOCK would do that, barring barrel obstruction.
I have several .40s, and they are seriously stout weapons.
Curious if the .45 is a “hollowed out” .40 or somesuch, making thinner walled (and thus weaker) by design.
Actuall, the .40SW Glocks have earned somewhat of a reputation for the “KaBOOM!”. Mostly attributed to the unsupported case on the factory chamber.
I have two .40 Glocks, and have never had these problem, but numerous instances are documented.
And remember the only “stout” portion of the Glock is the slide and barrel. With a case-head separation under pressure, everything goes into the polymer frame and down the magazine well.