Stability of gas measures under perturbations and discretizations