Issue with Arduino software on Mac

Hello im using the latest Arduino software for apple silicon on my Mac. When I try to run my code I get the error below. How can I fix this to run the Arduino software on my Mac.
this is the error:
Error downloading index 'https://downloads.arduino.cc/libraries/library_index.tar.bz2': Get "https://downloads.arduino.cc/libraries/library_index.tar.bz2": dial tcp [2606:4700::6812:a15]:443: connect: connection refused Get "https://downloads.arduino.cc/libraries/library_index.tar.bz2": dial tcp [2606:4700::6812:a15]:443: connect: connection refused: https://downloads.arduino.cc/libraries/library_index.tar.bz2

Could you tell us a lot more about setup. For example what Arduino do you have?

What is the code you are trying to download? Please post it.

What Mac OS are you trying to use?

Has it just stopped working, or has it never worked.

What Arduino IDE are you using?

Also tell us about your network settings.