9mm Luger and 40 S&W both have SAAMI max pressures of 35,000 PSI.
So - some other reason for the .40 Kabooms?
Could be; Cartridge diameter relative to the chamber surround -- I.e. 9mm chamber supports more "%" of the rear of the cartridge? Leading to a "higher" relative chance of a one in a million load leading to a Kaboom in a .40, vs. the 9mm?
Just asking out of interest.
Also to remind all to wear eye protection. Can't say that enough times.
OP - Get well soon.