I'm facing this problem right now and using VPN solved for me, btw before try this i saw every config of the codespace and configs for the repository, i've undone all the configs related and the problem persists, reading the @Sachin answer i tried turn on the VPN while the codespace still loading, and it worked perfectly.