That image gave me a better understanding where you can coming from and I appreciated it.
I'll need your save to take a look. It's an edge case. It could be a bug or mod conflict.
Ground groups from ERM don't ignore your defense and walk pass it. The only group that bypass defense is the air "precision" group and dropships group. You get early warnings if you have built an air raid radar. Maybe your mine was raided by them?
They don't build bridge when they can't break through your defense. They only do so when they are surrounded by water with no path to your base. The other case could be that other mods killed my ERM group prematurely. That causes the ERM group to become invalid when pathing logic runs, and triggers the bridge building.
It was a dilemma when I created this feature. There were people who asked disabled air unit for biters on nauvis. The bridge mechanic was added to counter that. When you do have air units enabled, it's another mechanic to add some random encounters. It also serve as optimization. Having spawner to create invalid pathing group on an island is waste of computing cycles. This function gives those spawners a path to move forward.
Regardless, the bridge building is here to stay. Players have the option to opt-out with a simple data mod for non-ERM planets.