I would think for you if that's the way you are thinking would be to renew in UK, easier to do, cheaper and easier to sort out any potential problems.
another way would be to obtain the next extension which will be issued for 10 months ( passport expiry date), then renew passport early 2025, before the new yearly renewal date in June, i am in the same boat as you, with a passport expiring in may 2025,( issued for longer than 10 years) with yearly extension renewal in early december. i am still thinking what to do, no trips out of the country planned.