To file your tax return electronically, you will need EITHER last year's self-created 5-digit PIN, or last year's AGI (adjusted gross income). Your 5-digit PIN isn't saved anywhere; in this case you can use you AGI instead.
Your 2023 AGI is located within your prior-year tax documents Form 1040, Line 11.
There are a few reasons why your AGI, even if it is correct, it might not work, such as if your 2023 return was processed after April 15th, 2024. In this case, you can try putting "0" for the AGI. Refer to the link below for more details and scenarios. If after trying with "0" it keeps getting rejected, you will have to paper-file your return.
How do I find last year's AGI?