Hi jacobkung,
We cannot advise you on the outcome of scenarios.
You would need to look at the residency tests when you return to the UK, to determine if how they apply to your circumstances.
Guidance on the statutory residence tests can be found here:
RDR3 Statutory Residence Test
Thank you.