Happens more than once a year at my son's school and many others. It is a pressure cooker at the top schools. These kids know how much this is costing them and their parents, and it's not just enough to be smart. Most didn't get there for being slouches- and tend to run towards perfectionism. Super hard to be the brightest in your high school, only to be "average" at the college of "your dreams."
Some of these kids didn't even have to crack a book in high school to pull off great grades. Everyone eventually hits a wall with a class that is hard for them. Many don't have study skills as they have never needed them- and no clue how to reach out for help.
There are ones that are literal machines- with no social skills, no fun, no "college life"; that do nothing but study.
One little thing or many can push one over the edge. It is so sad. No degree is worth it. Nothing is worth taking your life. It will get better. Prayers for her family.