Hello,
The behavior is expected. The thing is that the AD property Country and Microsoft 365 location work differently in this case. UK will work fine for the Country. However, in the Active or modify Microsoft 365 account action the value will be invalid. You need to us GB instead.