I think this has something to do with the update where if the use of your cookie is not in the same region/country as where the cookie was made, it kicks you out. Not sure tho. Do you use a vpn/proxies by any chance?
oh also I see you have a while true statement, maybe you got ratelimited? As you do a big ton of requests because I don’t see any type of waiting in this code.