it is likely some of your xlsx transformations is causing this. you can try to comment some parts and try again until you get a not corrupted xlsx, you will be able to identify which xlsx helper call is causing that problem and probably be able to adapt it and fix it.