It’s a known issue that Microsoft Defender for Android can appear to “turn itself off” or disable features like Web Protection, even on new devices. This is usually not caused by malware but by Android system behaviors and app settings.
To troubleshoot refer to: