I appreciate your concern for your student,
Such syncopal attacks are sometimes seen with dysmenorrhea,due to vagal stimulation by pain.
this pain will decrease with age.
I advise her to get evaluated by a physician to rule out any other underlying abnormality.
This is unlikely with ibuprofen
,but next time she should avoid it and take mefenemic acid instead.
she should take proper nutritious diet rich in green leafy vegetables.salads.as anemia
is very common in adolescent age group .