Hi ian renwick,
Though there may be other explanations here, it could be that your code is misinterpreting your one-off lump sum as regular income, and calculating a higher rate deduction as a result.
Please contact us by webchat or phone here:
Income Tax: general enquiries
We can update your projected income and code accordingly, and advise on any repayments due.
Thank you.