Get your taxes done using TurboTax

Just ran into a similar issue this year (2023 filing 2022) and solved it. Here is my experience:
1. My wife and I filed via mail jointly for tax year 2021, at that time, my wife didn't have an ITIN or SSN yet. But we started the ITIN application process along with filing our taxes in 2022.
2. She got her ITIN months later, and then she also got her SSN by starting to work.
3. Fast forward to this year (2023) trying to file my 2022 taxes. I tried to e-file but got error code from federal that my spouse's AGI is not correct.
4. TurboTax lets me fix my spouse's AGI by pressing "fix it." And I entered "0" as suggested in this thread.
5. But then it takes me to the e-file page again and I checked the option that we filed jointly last year (because it asks me specifically what was on my form 1040). Then I entered my AGI again, but it never asked for my spouse's.
6. Submitted, then got rejected again with the exact same error code. And based on the fact that TurboTax tells me the AGI I tried for my wife, which is the same as mine instead of 0, I figured that TurboTax somehow overwrote the "0" I entered for my spouse when I tried to file.
7. Tried live help from TurboTax, the guy just tells me to do exactly what I just did...
8. THIS IS WHAT WORKED: Before efiling, I tell TurboTax that my wife and I filed separately last year (a blatant lie) by checking the corresponding box in the form they have us go through before filing. I enter my AGI number as usual, but then it lets me enter my wife's as well! I checked the box "didn't file last year" for my wife then submitted. (I think if checked the 1040 option for my wife then enter 0 for her AGI it will likely work also).

Hope this will help someone in a similar situation.