Thank you for your query.
Do not panic.
I think your child is suffering from acute migraine
These attacks are typically induced by stress
They are relieved by vomiting
Kindly consult a GP and put her on medications.Do check her blood pressure.
If you have any further queries you are free to consult me.Hope this answers your query.Wishing your child a speedy recovery.Have a nice day.