Can you elaborate under which circumstances/app you are getting this warning?
iOS 17?
In the meantime and depending on the cause of the notification, this might be a feasible workaround:
Have 'Airplane Mode' ON and then only Toggle WiFi/Bluetooth if required.
(As 'Control Center' can only disconnect Bluetooth, not power it off, you'd have to go through System Settings or create a Shortcut/Automation.)