About this question
In VS Code, I performed these steps:
Ran the command 'SFDX: Create Project with Manifest'.
Ran the command 'SFDX: Authorise an Org' and authorised the org.
Right-clicked the package.xml file and clicked ' SFDX: Retrieve Source in Manifest from Org'.
After step 3 was completed, the output displayed this-
Starting SFDX: Retrieve Source from Org
read ECONNRESET
I tried by changing the version in package.xml from 51.0 to 50.0 and retrieving a single helper class from package.xml and also I removed other components from package.xml in case there is a large number of files, creating this issue. Also I restarted the vscode after the changes I made but that also didn't work.
If anyone has another approach or resolution apart from whatever I already tried please help.