Had this issue when using Surfshark VPN while working with virtual machines in VMware Fusion.
I could not access the AWS console or login into GitHub
Tried a lot of things to fix it such as:
- Reinstalling my VMWare
- Setting a new VMWare virtual machine
but none worked.
Here's what worked
I noticed that this error started after I updated the Surfshark VPN
Changing the connection protocols resolved the issue.
- Open the Surfshark application
- Click on Settings
- Then Advanced
- And lastly, Protocol. Here, you will find all of the available protocols, including IKEv2, OpenVPN UDP/TCP, WireGuard, and even Shadowsocks.

So for me, I changed it from WireGuard to IKEv2, and that solved it.
Resource: Why am I unable to access some websites while connected to Surfshark?
That's all