This error typically happens when the HTTP client tries to parse as JSON a response that is definitely not JSON - usually, it’s an HTML page with the proxy authentication error.
SonarLint relies on the proxy settings set in the IDE. You can also check this documentation page for SonarLint for further configuration options.