Scholars distinguish between levels of anger. Ordinary anger — where a man still knows what he is saying and intends it — does not prevent the divorce from taking effect, and this is the common case. But severe rage in which a person loses awareness and does not comprehend his own words is treated like coercion or insanity, and such a pronouncement does not count, based on the Prophet's ﷺ words, "There is no divorce (and no manumission) in the state of ighlāq" — ighlāq being understood as a mind closed off by overwhelming compulsion or fury. Because it turns on the man's state, a reliable person of knowledge should be consulted rather than assuming the divorce automatically did or did not occur.
Q&A · Marriage & Divorce
Is a divorce pronounced in anger valid?
Evidence — the daleel
On deen2u
Informational, not a personal fatwa. Consult a qualified scholar for rulings on your situation.