Can someone refile a previous year tax return online that was rejected or do you have to mail them in?

2022 tax return rejected (due to wrong birthday with social security office) can i refile online or do i need to mail them in?