Hey,
We're all human and sometimes as humans we often make bad choices. This response isn't going to drill into that, don't worry. Unfortunately I don't think many can help you massively on here because each university will have different processes for these matters. What I will recommend though is that you do not give up and take each day, as it comes. Hope for the best and expect the worst, trust me, this will help if for any reason the result does not go your way. The best thing for you to do is to get information that goes in your favour, list what services you have received i.e. uni mental health team and emphasise the consequences if you were forced to retake the year. Sadly I think that is your only option. They will hopefully recognise what you have gone through and give you a resub, at a cap. Just reassure them you're committed and you won't do it again.
I really wish you the best of luck and hope this goes well for you, keep your chin up and don't give up. Storms do not last forever.
Peter