The first efile attempt would be with the same total 2023 AGI for both of you. If you already tried that, then try the full 2023 AGI for you (primary filer), and a 2023 AGI of 0 for the spouse. It often works, but sometimes doesn't. But can't hurt to try.
If that doesn't work, please post the rejection error code/message.