Among the last things the sub crew reported was a fire — it isn’t unlikely that the fire asphyxiated everyone on board shortly thereafter, regardless of what other problems had arisen, and aboard submarines, one problem generally proliferates into multiple problems.
Most of the crew got off on the surface, before it sank. I think only one of the officers in the escape pod managed to escape before it too, sank.