Are Spain Income Taxes Paid on Retirement Withdrawals

My wife and I lived in Spain for more than 183 days in 2019 and were considered tax residents there. We paid income tax on distributions from a 403(b) account. Where do I apply for exclusion of that income or credit for the tax amount? The distributions were reported on 1099-R, not INT or DIV, and that option doesn't come up on Form 2555. Or, how do I claim a credit for the taxes that we paid Spain on that income? Thanks!