Error Installing HomeBrew On macOS Catalina

I am getting this error while installing Homebrew, any help please

error: RPC failed; curl 18 transfer closed with outstanding read data remaining

fatal: the remote end hung up unexpectedly

fatal: early EOF

fatal: index-pack failed

Failed during: git fetch origin --force