Build 5.0.0.24 of xlsgen has a fix related to memory corruption.
The scenario includes opening and updating a XLSX or XLSB file with a long file path (possibly due to sub-folders). A workaround to the fix is, instead of opening X and saving as X, to open as X and save as Y, assuming Y is later renamed to X or whatever. Also a workaround consists in saving to memory, thereby with all the freedom to write back as a file later on.