In the case I cited, the altitude of the dive was extremely high, and the dive frankly should not have been attempted. There is a good chance you will never be at that elevation, let alone dive it.You really scared me. I will study the altitude aspect.
But I will help you look into it.
I assume that your DM course included training in Boyle's Law, mathematically represented by V1P1=V2P2. At sea level (surface P = 1 ATA), a 1 liter (or whatever) volume of air at 10 meters depth (2ATA) that is taken to the surface will double in size (1*2=V2*1=2). If the atmospheric pressure is 0.8 because of altitude (about 1,800 meters), then the equation is 1*1.8=V2*0.8=2.25.