According to British law, a foreign pupil or student whose educational provider loses their licence has 60 days (or the time before their visa expires, whichever is earlier) to do one of the following:
Switch to another visa category;
Find another sponsor;
Leave the UK.