Your 2023 return should not be affected by the 2022 mistake. You can go ahead and prepare and file 2023, but if you have a mistake on 2022, you should amend 2022.
See this TurboTax support FAQ for amending a tax return - https://ttlc.intuit.com/turbotax-support/en-us/help-article/tax-return/amend-change-correct-return-a...
Do not expect quick results from amending. It can take four months or more for the IRS to process an amended return.
You can watch for information here:
https://www.irs.gov/Filing/Individuals/Amended-Returns-(Form-1040-X)/Wheres-My-Amended-Return-1
**Disclaimer: Every effort has been made to offer the most correct information possible. The poster disclaims any legal responsibility for the accuracy of the information that is contained in this post.**