Not sure if it is the same issue but I recently had an xlsx corrupt file issue just posting in case anybody else has the same issue
I amusing html to-xlsx recipe with ejs templating, I figured it out that I was missing the <tbody> tag around the table body and adding that fixed it for me