How to disable phone calls and text messages in iOS / on iPhone?
Some carrier can provide sim card that cellular data only.
Mainly used  for iPad notebook and IoT device .
You can use it for your iPhone to get the results you want.