Sounds very much like how my DD (now 10) was at that age.
I know I will get jumped on for bringing neurodivegence into it but I am just giving my experience, not diagnosing anyone.
We spent a lot of time learning various things to try to better communicate with her and support her, lots of online parenting courses, advice from a psychologist etc. Eventually through trial and error got a diagnosis of combined ADHD, though there is a big streak of demand avoidance in there too.
Things are better now but still difficult at times. She still absolutely explodes out of nowhere about tiny things (like the toy lid not fitting example you gave) but she can also calm back down very quickly if we don't respond in a way that escalates things. I think she is finally starting to mature a bit, but we still have to stay very low demand and do a lot of things for and with her that we did not have to do for and with our older DD.
Don't worry that her behaviour now is an indicator of how she will be as an adult, just find a way to calmly respond to the behaviour that's in front of you now. Calm, gentle voice, stay low, don't talk much, just calming reassuring body language. Ask the other kids to leave the room. Afterwards don't punish, comfort her and reassure her we all lose our temper at times. Perhaps a very brief chat the next day about what behaviours are ok, but don't labour it. Our DD knew what was and wasn't ok but couldn't stop herself in the moment as she was in fight/flight. So going over it again and again just made her feel bad which wasn't helpful.
I hope some of this is helpful. Good luck x