This policy setting allows you to configure scanning for all downloaded files and attachments. If you enable or do not configure this setting, scanning for all downloaded files and attachments will be enabled. If you disable this setting, scanning for all downloaded files and attachments will be disabled.
Solution
Policy Path: Windows Components\Microsoft Defender Antivirus\Real-time Protection Policy Setting Name: Scan all downloaded files and attachments