My spouse did not have an income for 2022 but our return was rejected, how do i fix that?

the irs transcripts even show he did not file those years because he was incarcerated.