just digged into this and found that the code creates an excel Object (in memory) in which the data, read in buch of > 2000000 points, is being populated. I believe that this is the issue as this excel object is getting bigger at each loop and fails at the end of the code when it tries to save the object (with all data size as shown above) into a file.
How to avoid using the excel object?
