There are multiple factors, both internal and external to InDesign application, that can lead to document corruption. However, we can take a look and see if the file can be repaired. Please email your InDesign file to firstname.lastname@example.org. We will take a look at the document.
If the file is larger than 10 Mb, you can zip (and password protect) the file and upload to Creative Cloud account (or Dropbox/Wetransfer/GoogleDrive) and send us the document link.
Adobe InDesign teamReza commented
Please help me! I need to recover a file of Indesign CC 2018, Error code 5.