WaaSMedicAgent is responsible for repairing Windows Update when it breaks. Unfortunately, the Medic Agent itself can cause problems by having high RAM, high CPU, and high disk usage. Luckily, the WaaS MedicAgent can be disabled completely.
What Is WaaSMedic Agent.exe? (& How to Fix High Disk Usage)