Does your university not have summer resits? So that you have a chance to "resit" / "redo" the assignments for the modules that you missed over summer, and therefore progress into the next year with the rest of your cohort?
Granted your grade will be capped at 40%, but at least you get to progress.
I'd definitely suggest reaching out to your academic advisor to check. Or at the very least, gain their advice.
Don't worry, everything works out in the end.