Couple of fixes in this other thread.  Normally, I would tell you to repair the program.  If that doesn’t fix it, it is usually caused from a window’s update.

https://community.intuit.com/questions/1270476-quickbooks-crashes-when-attaching-a-file

Resolution for 'attaching files issue: 'If QB 2016 Pro frequently shuts down when attaching files from a hard drive, what are the possible causes?' available: Yes.

The attaching files issue or error code is a known issue in Quickbooks Online (QBO) and/or Quickbooks. Support for this issue is available either by self-service or paid support options. Experts are available to resolve your Quickbooks issue to ensure minimal downtime and continue running your business. First try to resolve the attaching files issue yourself by looking for a resolution described in the article. If it is a complex attaching files issue or you are unable to solve the issue, you may contact us by clicking here or by using other attaching files support options.

For more information about resolving issues related to attaching files in Quickbooks/QBO or to get support for the issue 'If QB 2016 Pro frequently shuts down when attaching files from a hard drive, what are the possible causes?', click the link below: