[OnePlus 5T  ROMs, Kernels, Recoveries, & Other Dev] saurabhere:
Yes. Doesn't happen on all apps. Maybe for some apps that are packaged in a particular way or using a particular UI component.

I see it on these 2 apps:

Read Chan - 4chan Reader - Apps on Google Play

Seamless & Personalized Experience

play.google.com

DesiDime: Coupons & Deals App - Apps on Google Play

Largest Online shopping community site in India | Offers on Recharge, Food, Cabs

play.google.com

I captured a log trace of the crash of the settings app:

time: 1634363677786 msg: java.lang.IllegalStateException: Remote stack trace: at com.android.server.NetworkManagementService.setAppOnInterfaceLocked(NetworkManagementService.java:1604) at com.android.server.NetworkManagementService.restrictAppOnInterfaceLocked(NetworkManagementService.java:1578) at com.android.server.NetworkManagementService.restrictAppOnInterface(NetworkManagementService.java:1561) at com.android.server.net.NetworkPolicyManagerService.updateRulesForDataUsageRestrictionsULInner(NetworkPolicyManagerService.java:4375) at com.android.server.net.NetworkPolicyManagerService.updateRulesForDataUsageRestrictionsUL(NetworkPolicyManagerService.java:4348) stacktrace: java.lang.IllegalStateException: android.os.ServiceSpecificException: Operation not permitted (code 1) at android.os.Parcel.createExceptionOrNull(Parcel.java:2381) at android.os.Parcel.createException(Parcel.java:2357) at android.os.Parcel.readException(Parcel.java:2340) at android.os.Parcel.readException(Parcel.java:2282) at android.net.INetworkPolicyManager$Stub$Proxy.removeUidPolicy(INetworkPolicyManager.java:564) at android.net.NetworkPolicyManager.removeUidPolicy(NetworkPolicyManager.java:263) at com.android.settings.datausage.AppDataUsage.setAppRestriction(AppDataUsage.java:465) at com.android.settings.datausage.AppDataUsage.setAppRestrictWifi(AppDataUsage.java:457) at com.android.settings.datausage.AppDataUsage.onPreferenceChange(AppDataUsage.java:283) at androidx.preference.Preference.callChangeListener(Preference.java:1120) at androidx.preference.TwoStatePreference.onClick(TwoStatePreference.java:67) at androidx.preference.Preference.performClick(Preference.java:1184) at com.android.settingslib.RestrictedSwitchPreference.performClick(RestrictedSwitchPreference.java:152) at androidx.preference.Preference.performClick(Preference.java:1168) at androidx.preference.SwitchPreference.performClick(SwitchPreference.java:195) at androidx.preference.Preference$1.onClick(Preference.java:181) at android.view.View.performClick(View.java:7448) at android.view.View.performClickInternal(View.java:7425) at android.view.View.access$3600(View.java:810) at android.view.View$PerformClick.run(View.java:28306) at android.os.Handler.handleCallback(Handler.java:938) at android.os.Handler.dispatchMessage(Handler.java:99) at android.os.Looper.loop(Looper.java:223) at android.app.ActivityThread.main(ActivityThread.java:7668) at java.lang.reflect.Method.invoke(Native Method) at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:594) at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:947) Caused by: android.os.RemoteException: Remote stack trace: at com.android.server.NetworkManagementService.setAppOnInterfaceLocked(NetworkManagementService.java:1604) at com.android.server.NetworkManagementService.restrictAppOnInterfaceLocked(NetworkManagementService.java:1578) at com.android.server.NetworkManagementService.restrictAppOnInterface(NetworkManagementService.java:1561) at com.android.server.net.NetworkPolicyManagerService.updateRulesForDataUsageRestrictionsULInner(NetworkPolicyManagerService.java:4375) at com.android.server.net.NetworkPolicyManagerService.updateRulesForDataUsageRestrictionsUL(NetworkPolicyManagerService.java:4348)

Edit: issue doesn't happen anymore after I installed Magisk and some modules. Not sure if related.