You desperately need a lawyer.
There are two issues here, one civil, one potential criminal for you.
The marriage might simply be void.
The attempt to get married while still married (despite the pending divorce action) could be something he uses against you when you leave. (AS in BIGAMY)
See a lawyer and say NOTHING to anyone until you've spoken to lawyer.