Why quickbooks company file issue ?
https://quickbookhelpdesk.com/blog/how-to-fix-quickbooks-company-files/
QuickBooks company file issues can occur because of data corruption, improper shutdowns, network interruptions, or damaged storage devices. To fix these problems, first create a backup of your company file, then run the built-in Verify Data and Rebuild Data utilities to detect and repair errors. If the issue persists, use QuickBooks File Doctor to resolve file corruption and network-related problems. Keeping QuickBooks updated and maintaining regular backups can help prevent future company file errors and ensure smooth business operations.