Most of the time, it is cognitive empathy that is more the issue when it comes to autism,...the ability to "read" people, the ability to "understand" another's perspective without specifically asking.
There are different types of empathy. Emotional empathy,...the ability to cry or laugh with someone is generally not affected in autistics.
https://embrace-autism.com/the-different-types-of-empathy/
Having said that, what you are describing is more of an emotional state,...anxiety, frustration, anger, etc.,...and when emotions are involved, it tends to inhibit the "logic" centers, irrational thinking ensues, and communication centers are also inhibited. That's why people are often relagated to cursing, not being able to complete a thought, nor a
sentence, and turn into "blubbering idiots". All of that,...is not "an autism thing",...that's a normal human thing.
The better question is to understand the underlying reasons for the emotions.