The problem disappeared by itself. I guess the problem was with my shitty ISP. I was having problems with many websites. I was being redirected to CloudFlare constantly. I thought it could be my computer but that was not the case.
AdGuard is working great. If you can, delete the thread since the content is not relevant.