From earlier description of OP, it seemed like he had a 4 pole breaker.
If breaker did not operate due to any current in the neutral, then perhaps an arc flash event inside the breaker might have caused the explosion.
~All (4) terminals of the main breaker appeared to be in good visual condition showing no sign of loose connection nor heating.
Some might look like a 4 pole unit, but are listed as a 2 pole unit.
They are not connected to the neutral conductor either.
If breaker did not operate due to any current in the neutral, then perhaps an arc flash event inside the breaker might have caused the explosion.