Excess Roth Contribution from 2 Years Ago - Complicated Issue

I am working on a 2020 tax return where an excess Roth IRA contribution was made in 2018 and distributed to the taxpayer in 2020, and there was a loss on the investment.  A 1099-R with code J (early distribution from Roth IRA, no known exception) was issued, but does not include a second code to explain that the distribution was due to an excess contribution.  The second codes available are 8 (excess contributions plus earnings taxable in 2020) or P (same thing but taxable in 2019), but there is no code for two years back.  I understand that if there were earnings on the distribution, they would be taxable in 2018 in the year of contribution, but the investment lost money, so there are no earnings.  The amount of the excess contribution was reported on form 5329 for 2019, and carries over to 2020.  Since the 1099-R reports a distribution that is less than the excess amount (due to the loss), Turbotax is calculating the 6% penalty on the remaining amount (equal to the loss).  Example $1,000 excess contributed, $200 loss on investment, $800 distributed, form 5329 shows $200 remaining from the excess contribution.  Instructions for form 5329 details instructions if the balance of the entire Roth was distributed, but that is not the case.  How do I report that the excess contribution WAS fully distributed, and no penalty is due?