Especially after hibernation, WSL often hangs with 100 % CPU usage.
The default command wsl --shutdown
also doesn't work.
The most promiment issue is microsoft/WSL#8696.
The temporary solution is a small script from microsoft/WSL#8696 (comment).
Copy the script (below) and run it as an administrator in Powershell.
To achieve this, press Win + X
followed by A
.
Now navigate to the scripts location and run .\killWSL.ps1
.