I have encountered this issue as well while using wsl on vs code.
The solution in my case was to disable the telemetry in settings.
I got the answer from here
https://github.com/microsoft/vscode-remote-release/issues/10804