I hope you’re feeling better by this time, and found a neutral party to talk to. I agree with Penny about removing your husband from the equation when it comes to helping you with university. Most universities have resources that can help and where there aren’t any emotions attached between the two parties. That way, your husband isn’t trying to help and feeling frustrated that you aren’t following through, and you hopefully won’t feel personally attacked, since it’s a neutral person helping you.
I think it’s always a good idea to remove yourself from a situation as much as possible when you’re feeling that anxious or panicky. Go for a walk, listen to music, watch something funny, something to break you out of thinking about the same things over and over and re-triggering the panic.