401 is an authentication error. This may mean a problem with Twitter itself.
Can you try to change DNS and check? Use 1.1.1.1 and 1.1.2.2. Restart your PC after changing DNS.
https://www.tenforums.com/tutorials/77444-chang...
Content on the above blog is written by a Microsoft MVP so it is safe. However, do watch out for the ads.