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.
Here's a suggestion:
Mark the time when starting the thread.
Then during the script run, add a time check action and compare the time difference with your desired value.
-> Take appropriate action.
While using "Call function in multi-threads" and put remove current element from resource inside the function, it will remove all resource element that has been already used in the function and not only the current element in thread.
There should not be any problems.
Load profile with gmail, than simply open new
tab and navigate to other site, Then just go back
to TAB where gmail is and confirm incoming mail.