Hello,
Please check the alternative download code available on:
https://www.phpdocx.com/documentation/cookbook/download-generated-docx
A common issue may be that your web server is using a wrong mime type for DOCX files or it's adding junk strings (you may see them using a HEX viewer).
Regards.