Dare we say it, but Microsoft seems to be reading the room.
To fix high memory usage by Antimalware Service Executable on Windows 11, try turning off real-time protection, uninstalling pirated apps, scanning for malware, rescheduling Windows Defender scans, or ...