In preparation for getting a new PC, I copied all my important files from my current PC's hard drive to a USB-connected hard drive. I let this process run overnight, and about an hour after it finished, my PC slowed to a crawl. Task manager showed 100% disk usage, which persisted over several power cycles, and the worst offender was "System", followed by "Antimalware Service Executable". "Settings > Windows security > Virus and threat protection" showed "Threat service has stopped. Restart it now." but would always fail to restart ("Unexpected error. Sorry, we ran into a problem. Please try again.")
After about 18 hours, I still had the same problem, despite my rudimentary troubleshooting attempts, so I decided to just reinstall windows using the built-in "Start fresh" utility. This fixed everything.
A few days later, I decided to make another copy of all my important files, this time to a USB flash drive. I ran it overnight, and this morning I again found that my disk usage was stuck at 100%. After a power cycle, the virus & threat protection service is stopped again, and fails to restart. I suspect this is not a coincidence. What might be causing this problem?