Only the IRS knows why your e-file was rejected. If you filed your 2017 tax return late, it's possible that they don't have your 2017 AGI in the e-file database, and using zero would work. Sometimes the IRS records are just messed up, and there's nothing you can do to get it to work.
Print your tax return, sign it, and file it by mail.