Excessive HSA

While employed my husband mistakingly contributed to his HSA for 3 years while on Medicare.

Turbotax caught this error and each year added the contributions to other income and paid he paid add'l tax on line 49 of form 8889.

After filing 2021 the accumulated excess was still carried over on line 48 from previous years although no add'l taxes were charged.

For 2021 there were no contributions made to HSA.

How do i get rid of excessive contributions for next year if I have to carry over line 48?