You can try adding Antimalware Service Executable (MsMpEng.exe) to exclusion list, see if it helps:
- Open Windows Security.
- Click on Virus & threat protection > Virus & threat protection settings.
- Locate 'Exclusions' and click Add or remove exclusions.
- Hit Add an exclusion and select Process in drop down.
- In Add an exclusion, type MsMpEng.exe and click Add.
Alternatively, please refer the first reply suggestion in this thread:
If issue still persists, you can refer other suggestions in this fix:
https://www.kapilarya.com/fix-antimalware-service-executable-msmpeng-exe-high-cpu-usage
Let us know if that helps you!
Note: Included link(s) in this reply refers to a non-Microsoft website. The page appears to be providing accurate, safe information. Watch out for ads on the site that may advertise products frequently classified as a PUP (Potentially Unwanted Products). Thoroughly research any product advertised on the site before you decide to download and install it.