This usually happens because the system's "Device Health Services" or a manufacturer-specific optimizer overrides your changes. In these cases, you may need to use a permanent solution like a Magisk module or a dedicated system-level script.
For specific games like or PUBG , users often apply these tweaks for smoother gameplay: Setedit Command
If you have a rooted device, you can run the command locally. This usually happens because the system's "Device Health