curl: (35) Recv failure: Connection reset by peer
When installing Homebrew using the command
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
faced with the below error.
curl: (35) Recv failure: Connection reset by peer
Software: macOS Sonoma 14.0
MacBook Pro (M2, 2022)