Yes, i also faced this problem, what i did was if file size was > 100kb then i delete cookies and bot will check if cookies are not present then it will call login function and new cookies file will be saved which will be less than 100 kb.
Unfortunately, this delay does not work for some reason. See in the video:https://dropmefiles.com/DnZGy It's setup to 4 minutes and the BAS doesn't even wait 1mminute. What could I have done wrong?