Sign on to his online account and go to the My Info section to edit his personal information and correct the SSN.
Once the SSN has been corrected you can go to the File section and e-file the tax return again.
You have until October 20, 2024 to correct and e-file a 2023 rejected tax return.