it is possible to withdraw from examinations due to mitigating circumstances - get in touch with your department ASAP (i would advise going straight to the department to minimise delay as exam season is basically happening already, rather than going through your personal tutor). you will need to fill in a form and may need to provide supporting evidence.