Keep more than one copy
Store important files in at least two separate places, such as your computer and an external drive or trusted cloud backup service. Check that backups actually open.
Automate regular backups
Use the backup tools available in your operating system and periodically test restoring a file.
When a drive may be failing
Repeated clicking noises, disappearing drives, or read errors can indicate a problem. Avoid repeated restarts and avoid installing recovery software on the affected drive. Professional recovery is not guaranteed.