Hi,
As your partner is resident in the UK, the lump sum form her previous employer in Spain, is taxable in the UK and not Spain.
If any tax is deducted from the pension payment in Spain, your partner would need to submit a repayment claim to the Spanish Tax authorities. HMRC can issue a certificate of residence for the foreign penions, to support the repayment claim. You can see more information here:
How to apply for a certificate of residence to claim tax relief abroad
Thank you.