Well if Xavier can determine what kind if gas it is and what it doing to them, there probably something in the medicine to give them immunity to it or stop it from making them worse.
Regardless Xavier is going to tear off some of his robe and wrap it around his mouth and face to help reduce the amount he breath in.
And if he can't he will keep moving towards the control panel to shut the vents off.