You can download Quickbooks file doctor tool from intuit's official website, download it and follow on-screen instructions and install it then in that tool check file damage option then click on diagnostic file and fix your error.
https://toolhub.me/quickbooks-file-doctor/