There is definitely a glitch where if you are digging a rock in front of a wall with a mine, you somehow dig through the rock and hit the mine a tile away. It seems to happen when there is procedural loading. I have died twice in early game to this.