Might be a long shot, but I had a similar issue and it turned out to be my DNS settings.
I was using automatic DNS configuration via DHCP, therefore ultimately using my router as the DNS server, which in turn pointed to my service provider’s DNS.
Once I switched to manual DNS configuration and used Cloudflare’s DNS (1.1.1.1), it all went back to working.
As I said, it’s a long shot, but when everything else fails…