Surrounded is not intended to last forever (although some people have worked out configurations where you can almost live indefinitely or until the game crashes) and the burrowing ants are part of that.
Don't worry - when Formicarium mode is released with early access, you'll be able to take your time designing a nest layout of your liking that you can save without the possibility of burrowing invaders!