Robustness of the Gaussian concentration inequality and the Brunn–Minkowski inequality