Have you already handed in your notice?
Is the 2 month notice period also applicable to your employer?
If your employer asks you to leave earlier than the two months, they should put you on gardening leave and still pay your salary.
You would also have 28 days in which to switch and submit a new application.
I hope this answers your questions. If so, kindly rate the answer and provide feedback.
if you have any further questions please do not hesitate to ask.