Ask an Property Solicitor. Get an Answer ASAP.
If you leave, it would not invalidate the subtenancy, it merely means that the subtenant becomes a tenant of your landlord, unless otherwise agreed.
If your landlord wishes the subtenant to go, they may ask you to give them notice to leave or they may give them notice to leave directly once you have gone.
May I help further?
You do not have to, but you may do so as a matter of courtesy.
All the best. Please click on 5 stars