... they know ants have been dealing with that same problem for millions of years? There's design tricks that limit how effective it can be. And blast doors are a thing.
It'd be the first thing anyone thought of, though. This isn't a creative solution or something.