I don’t think I have ever read a Sci-fi story with that plot, but seems like an obvious story line now that you mention it. “Captain somebody forgot to tell the AI we need oxygen to live”
Dave: "Open the pod bay doors, HAL."
HAL: "I'm sorry Dave. I'm afraid I can't do that."