That HSA transaction must not have been associated with one of the Tax categories where Quicken knows how to ask for a tax year.
Even though the transaction was made in 2023, to make it appear in tax year 2022 record it with a date of 12/31/2022 and add an explanation to the Memo field. Like it or not, that's the only method I know. Perhaps someone else will chime in with a better idea.