Nitrogen leakage in energy storage device