I fixed it! You have five seconds of invulnerability at the beginning. If you upgrade your "Miner Ability", you can get to a point where they never hit a mine.