Hello,
Maybe you could generate the DOCX with a name and set other name as download filename. Some OS may have limitations working with special characters for file names or they are escaped automatically; for example Windows doesn't allow to use ':' as part of a file name.
We have done some quick tests on a Linux server and it's working consistently.
Regards.