I contributed HSA until June with my employer. My Medicare Part A was "backdated" to March. What is IRS penalty on this social security benefit overlap?

can i avoid the penalty by withdrawing some money from HSA?