My ex husband claimed me. And I am tring to file this year it's getting rejected because I don't know the AGI
If you do not have last year's AGI you can request a transcript of your 2018 tax returns from the IRS. The transcript will have your AGI.
This link to the IRS web site Welcome to Get Transcript has directions on how to obtain a transcript of your tax return.