Breaking up with someone is always so hard, and I'm so sorry you are going through this right now.
And even though you may be struggling with Uni, it is also, as you said, the one thing that is keeping you going.
Perhaps you could see if there is some sort of additional support at the Uni, that you could utilize?
Grief and sadness are a normal natural part of going through a break-up. However, if you feel it is getting out of control, then maybe it's time to get some more help. And you've made a start by reaching out on here. Beyond Blue is here and available to you 24/7.
And one last thing; pain doesn't last forever. This WILL pass. It may not happen overnight, but it will happen. Just focus on each day as it comes, rather than trying to fix your whole life problem at once.
I do hope you start to feel a bit better soon. Take care, and keep reaching out. You are not alone in this. We got your back. xo