A loading error like that is generally caused by Windows shutting down when yWriter is saving out your work.
There are several ways to recover though, nothing is lost.
First, there's a .bak file in the same folder as your project. Rename your project file to something else, then duplicate this backup file, change the entension to match whatever you were using (yw5/yw6/yw7) and double-click the new file.
Second, in the Autobackups folder for your project you'll find daily zips taken at 15 minute intervals, as well as copies of scenes saved about every five minutes as you were typing them, going right back to the start of your project.
Find the most recent zip, extract it into an empty folder, and you should be able to continue from there.
For the future, I highly recommend going into Tools - Backups - Configure Alternate Autobackups folder and set it to somewhere on cloud storage. That way you won't lose anything even if your hard drive fails and you never take manual backups.
Cheers
Simon