Title basically explains it

I have been spiraling for months now, amd it this point I want to check myself into a psych ward again. The problem is that I‘m already struggling at school, learning from the ward is difficult and I cannot fail this year. If I fail, I‘m gonna have to leave my current school and try to get a different one to accept me, which will make getting my desired school degree very difficult. 
I don’t know what to do.