My now 10yr old was still like that at 7 - he is much better now. He has issues with texture, foods, and other sensory things. Haven't had him tested, but probably has slight spectrum traits... but is very bright and functions well etc. so we haven't gone down that route.
For us, one thing that helped immensely was feeding him more, he spent a lot of the time "hangry" because he hadn't eaten enough, has very fast metabolism and can't cope when he's hungry.
We fed him breakfast when he got up, middle breakfast before school, morning tea, lunch, afternoon tea as he walked out of school (before he got to tell us about his day), later snack at 5'ish, then tea at 6:30 - sometimes an extra snack before bed. Just fruit and crackers for extra snacks or nuts, maybe biscuit depending on how he'd been eating. He is underweight, below 1%ile, so we can afford to feed him constantly.
The other thing is to talk it through in calm times, explaining that level of reaction isn't appropriate. It is your bed, and you set the rules. Eating in your bed isn't allowed for these reasons, and she can choose to eat in XYZ places, but not in your bed. If she does it, then she will not be allowed into your room, the door will be shut and it will be out of bounds for her.
Trying to see these big issues erupting and diverting attention is also good, but often they were caused by external things that we couldn't avoid. Or fixed things that we weren't prepared to compromise on.