A 1099-R was provided for an incorrect state (change of address not timely handled.) How do I correct this?

I moved from Maine to New Mexico in November 2022.  I changed residence for 2023 with my IRA (TDA), but apparently it was not processed in a timely manner as I received two 1099-R; one for Maine and one for New Mexico.  Called and was told to contact my tax advisor; hence this request.

 

I figure I can file a Maine return with NO income and get a refund.

 

For Fed and NM, how do I add the taxable amount and withholding that the 1099 attributes to ME?