When your bank rejects the refund deposit, the IRS will mail your refund check to the address listed on your tax return.
Refund was sent by IRS and rejected by my bank on 2/22, updated on 2/28 to say I would have a check mailed out by 3/6. So about a week and a half.
If the info you provided is for a closed or invalid account, the government will mail you a refund check. The following will provide additional details.