Just turn the phone off. That’s what Apple has you do when you need to turn off Find My iPhone but your phone is on and unable to be used. Even without the sim the device is still trusted, and as long as it’s connected to the internet it will try to authenticate with it. Also trusted contacts are also now a thing. https://support.apple.com/en-us/HT212515