Failed to validate the SSL certificate for...
errors are very often connectivity issues that resolve themselves if you try later (example), maybe 30-60 minutes later. Sometimes you can regain connectivity faster by changing your IP (enable a VPN, go to a coffee shop, etc.).
Such connectivity issues simply happen sometimes, but seem more frequent with dependencies pulling from github.com
after you’ve been provisioning your VM multiple times in a short period (i.e., potentially a rate-limiting thing from GitHub).