Oh hunni! Sweetheart I've been there and we're currently going through a tough patch with our middle one.. Growing up sucks. Might be worth talking to her tutor at school or whoever is in charge of pastoral support and getting her some additional help?
This has nothing to do with you being a "failure" because you aren't!