The combined contributions are subject to the family limit of $7,750. When both spouses are HSA-eligible and one spouse has family HDHP coverage, both spouses are treated as having family coverage.
You can treat the excess $245 contribution as being in either of the HSAs, so it doesn't matter from which you obtain the return of excess contribution by the due date of your 2023 tax return, including extensions. Just make sure to tell TurboTax which account the excess was returned from.