You might want to ask Dr. Gould on the mental health forum for this one. It could be hyperventilation from panic attacks, but that usually doesn't proceed to blacking out. You say her body is attacking her; what do you mean? If it's her emotions and they're that bad, why isn't she in therapy and on medication? Dr. Gould will need that kind of info if he's to give an informed opinion.
Did the doctors say that this could be purely from panic attacks? Has she had anxiety issues in the past? Does she get therapy for her panic attacks? Sorry to ask so many questions, but panic can really be scary, confusing, and can cause all sorts of symptoms.