Does this customer has issues with wrong PDFs (from another company/contact) attached while sending emails via maintenance "create open invoice customer statement".
It sounds very similar to that.
Try to debug FormLinkDocumentFileNames().
This is a forum entry for anyone receiving the error message "The code execution cannot proceed because VCRUNTIME140.dll was not found. Reinstalling the program may fix this problem".
T...