After you file

if the IRS/state did not change any of the returns you filed with the bad SSN then there's nothing to fix.  if they did you can only amend 2017-2019 to decrease the amount you paid or increase your refund.  Prior years are closed unless you owe more.  for 2020 go to the dependent's worksheet and correct the SSN. then you should be able to e-file