In my second year at University, I failed Maths. I was shocked and very upset. I had worked so hard on Maths the whole year and then when I got my report card it said: FAILED.
As Christians we live with God at the centre of our lives. What this means is that we are His children as Romans 8:15-16 (http://bit.ly/2QYdKet) says. The way I got through this failure was to not see myself as a failure but to hold onto my IDENTITY as a child of God.