How do I resolve Git Recv failure Error in VS Code?

I am trying to pull a branch after connecting to gitlab repository. However, I run into below error on running the git pull command:

fatal: unable to access ‘https://gitlab.com/abc/xyz/’: Recv failure: Connection was reset

Can you please help on solving this issue?