It is natural to get overwhelmed by frustration or disappointment as a child. We, adults, have coping mechanisms developed over the course of years and have the ability to control these emotions.
In the same way we teach our children to talk and walk, we need to teach them how to cope with emotions.
Abandoning her in her room is not working. When she is overwhelmed and in the course of an episode, sit on the floor, and talk calmly, repeating reassuring sentences. " I can see you are upset, I am here next to you, it is hard not to have things go the right way and so on"
If she tries to hit you, with a very stern voice, say NO. Do not hit/bite/kick. If she tries to hurt herself , grab her hand, and tell " this is wrong, don't do that"
Then distraction often helps, so she has the frustration but moves to something else. Suggest taking bread to the ducks, baking a cake, ....
I would also say to NOT console her during the episode, but later, an hour later, when she is calm, talk about it, saying " you had a tough moment, must have been hard, it is not nice to feel so mad, is it? "
I would also recommend no screens at all for a week. No tv and especially no hand held device. I know it is hard, but experiment it. You will notice an enormous difference. Screens hyper stimulate the brain and accelerate everything.
1 week. Starting tomorrow. Blame a storm that has cause a surge in current. Unplug tv, and keep your phone away.