If you entered the 2021 AGI from your 2021 federal tax return Form 1040 Line 11 and the IRS continues to reject the correct AGI then the IRS probably does not have your AGI in their database
Enter a 0 (zero) for the 2021 AGI and e-file the 2022 tax return again.