The sun does not run out of oxygen for the simple fact that it does not use oxygen to burn. The burning of the sun is not chemical combustion. It is nuclear fusion.