Gas Generation Mechanism in Li‐Metal Batteries