Don't use Phone number based 2Factor or if you must use a number, keep it to an app (eg, Google Voice) and don't forward your Google Voice texts to your phone's number.
Basically, avoid using your carrier provided phone number for anything related to an account.