Visual Studio code failed to install error message when I try an extension installation

When I try to install an extension, I get the error message "Installation failed" with a manual download button. I tried to install manually and it works. Why do I see this error during the installation via the extension menu?

I've also tried disabling and automatically protecting the Norton Security firewall, but the problem persists.

Enter image description here