I was contributing to an HSA for family coverage. In June 1st my family changed coverage while I stayed with the HSA. Would my max contribution be $6,425 for 2025?

I received a message from my bank saying that I exceeded my maximum contribution now that I am enrolled as an individual because I have gone over $4,300, but my understanding is that I should be able to prorate and contribute the maximum for a family during the first half of the year, and the maximum for and individual the second half. With this, the max would be $6,425.