It depends. An SMS is sent whenever there is SIM card change - sometimes OS reports SIM card change without actually changing SIM cards, but we cannot change that.
In this case, just disable the setting above, you’ll still get notifications to your friend phone numbers anyways.