I having same problem, but i don't think that it is DNS's problem, because you able to download files, but i noticed kinda interesting pattern:
If I try to download package using curl, everything if fine, but if you will try to download something during getting error, you will not able to do this, i think that protection against ddos attacks, block requests if you send them often
UPD: Using Cheat Engine I freeze process during checking every checksum about 5-10s, I don't know, is it was a thing, that allowed me to get files, but it seems i downloaded everything fine, but got another error:
OS: Windows 10, Java: OpenJDK 17