Solution 1: Download, install, and use the QuickBooks Company File Diagnostic Tool
Download & install the QuickBooks Company File Diagnostic Tool.
Run the QBinstall diagnostic Tool.
In case, QuickBooks Company File Diagnostic Tool detects damage but doesn’t repair them. In such a scenario, you have 2 alternatives:-
Create the backup of the QB company file and then restore it.
Use the Auto Data Recovery and restore all the data.
You can share your data with the Intuit’s Data Recovery team & request them to recover it. Or you can get in touch with our certified ProAdvisors for the QuickBooks support.

Solution 2: Copy/replicate the QB file(s) to the local drive
Copy/replicate the QuickBooks backup file with the .qbb extension. Or you can do the same with the QB company file(s) with .qbw extension that you wish to update to a local hard drive.
Restore/update the backup QB Company files.
Copy/replicate the updated/restored company file back to its original location.