I’ve had that happen too. Unfortunately these seem like edge cases for most companies and sms based 2FA remains the default.
I’ve finally found a good workaround when traveling abroad: adding a local eSim for data-only and keeping my U.S. number on for receiving voice & text.