I need to apologize for my tone. I think I’m coming across as a bit hostile, so please accept my apologies.
If I may, I want to look at this a bit more closely to see why your marriages were declared null.
If you were baptized Catholic and got married outside of the Catholic church without proper dispensations, then this wasn’t a valid marriage (ie; null).
Again, if you did not receive proper dispensation to get married outside of the Catholic church, the marriage isn’t valid (ie; null).
Not only was the marriage possibly not valid due to lack of dispensation, but if he had a previous valid marriage that wasn’t declared null before marrying you, then the marriage with him wasn’t valid (ie; null).
Your second marriage is almost double null, because I’m assuming you didn’t get a dispensation and he didn’t get an annulment from his first marriage. In this case, however, a double negative doesn’t make a positive
Assuming you were baptized Catholic at the time of your first marriage, it seems to me that you had a slam dunk case of both of your marriages being null. I wouldn’t be shocked if the turnaround on your marriages being declared null was really quick due to the lack of form in both cases (plus your second husband not receiving an annulment on his first marriage).
Again, assuming you were baptized Catholic before the first marriage.