A.R.
I have known plenty of perfectionists. You are not going to change her or talk her out of this mindset. I would do two things. First I would work on channeling her energies into dealing with being an imperfect person with perfectionist needs and demands on herself. Maybe she needs to work off the frustration through art or sports. While working out the frustration, she needs to repeat to herself she is not a bad person and she is imperfect but still perfect in the eyes of those who love her.
Secondly I would work with her on how to strategize to improve. She will have to understand and accept she can't be perfect (see above). However, when she makes less than a 100 grade for instance, help her strategize on what she did wrong (maybe the wrong study strategy for instance) and how she will approach the problem next time. I think both things in tandem will work off the frustrations and also help her feel proactive in working towards perfection. Good luck.