It's not a bug! IG changed their api, bots cant fully access atm, therefore they cant store api cookies. Thats why you get a loop.
Running accs will not have this problem, so dont delete your cookies or reset!
The only way is manuall mail verification take cookie details and use it in your bot...