If the info you provided is for a closed or invalid account, the government will mail you a refund check
If you entered an account number that belongs to you, but you intended to enter a different account, use the Where's My Refund tool on the IRS website to see if the return has been posted to the IRS. If it hasn't been posted yet, you can contact the IRS directly at 800-829-1040 and ask to stop the direct deposit
If you entered a valid (but incorrect) account number that doesn't belong to you, there's usually nothing to worry about. Most banks won't deposit tax refunds into accounts where the names don't match. You can call the IRS to stop the direct deposit if your return hasn't been posted to their system yet. For security reasons, the IRS can't reroute your refund to a different account, so you’ll get your refund via a paper check
If your return is rejected, you can update your account info along with the issue that caused the rejection. Open your return in TurboTax and go through the File section again to update your bank account before resubmitting your return