Retirement tax questions

I had state and federal tax withheld from the return of excess. Because I did not have the 1099R as proof of this when I filed in 2019, I received a letter in the mail after filing that I had pay that amount. Fast forward to Jan 2021 when I got the 1099R, I provided this to get the refund (since that withholding amount had now been paid twice) but the form is being rejected because the year is 2020, despite the Box7 code of "P" indicating it is a 2019 taxable event.