@ schulzm
You said "we", so is this a 2024 married joint return? If so, and if last year's return was also a joint return, you normally would both use the same total 2023 AGI shown on last year's Form 1040, Line 11. Do not divide it. That's the normal scenario, but there might be an exception. More info is needed.
What is your rejection error code or message? Whose number is said to be wrong--yours or the spouse? Did one of you file real late in the year last year, such as after October 2024?