You will want to look at the PoshTools log.
You can also verify that the download location is accessible from your machine.
$Version = '2021.5.0'
Invoke-WebRequest "https://poshtools.blob.core.windows.net/vscode/windows.$Version.zip" -OutFile .\vscode.zip
We also support an offline install: