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.
@Omini yes, I just tried this way too, it still seems to cut-off at 1,000,000 bytes, so it wasn't related to breaking due to content etc, it still seems to be a data length / quota memory problem
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.