Unfortunately each uni can set its own procedures and requirements for this type of situation, so we probably can't help. Sometimes individual departments within the same uni can have different ways of handling things.
Sometimes it can be a judgement call. At my uni, if you failed more than half of a year's modules after resits without extenuating circumstances (e,g, a bereavement or illness) and the staff thought there was no realistic prospect of you doing any better during a resit year, then you would be withdrawn from the course.
You need to find the regs for your uni/department. Someone from your Student Union should be able to help.