WMI provider host sometimes suddenly take 100% CPU and back to as normal after few seconds
Recently when playing games, the game sometimes suddenly got stuck and after a few seconds, usually 5-10 seconds, it went back to normally running.
I monitored the Task Manager and found that it was the WMI Provider Host that suddenly took almost 100% cpu usage and at that time, everything on my computer got stuck. And when after a few seconds that it went back to normal usage like 5-10%, the computer also back to work as nothing had happened. I check the event log and found several 5858 errors, 0x80041032, like WMI-Activity Event 5858 ResultCode 0x80041032 - Windows Client | Microsoft Learn. Every sudden-100%-cpu-use came with 5858 errors as I talked above, while some 5858 errors had no impact to the cpu and computer performance.
What causes the sudden-100%-cpu-use of WMI?
How to fix it?