2019 High Deduct Plan & HSA for 9 mos. Regular health plan for 3 mos as I received SocSec. OK to Keep pre-tax 2019 HSA in fund or withdraw & pay tax?

Had to stop High Deduct & HSA because of Soc Sec payments. Did not take Medicare (still working). Do I have to pull 2019 HSA contribution out & pay tax?