I don't believe using Cloud Functions for this use case is the best. You are trying to create a word document with so much data (more than 1000+). This will take time and your function may timeout before it finishes its job.
better to use the admin sdk in an environment of your choose (like your local machine or GCP compute engine). Then programmatically (with a language of your choice) grab the data from both firestore and storage and save them in a new word document.
for more info about firebase admin sdk, check this documentation