In my opinion drives are not as good as they used to be. They are bigger and faster, but they don't last. The only environmental factor that makes difference is temperature. Effective cooling can minimize that factor. Also, you could use voltage regulators or UPS devices if voltage fluctuations are common in your area. However, it has always been possible that a drive that works perfectly well is completely dead a moment later.
So the only good answer is: backup.
Use external hard drives, internal hard drives, optical discs, tapes, drive duplicating programs, backup programs, whatever you like, but backup. Keep at least two archived copies of your data and store one of the copies in another location. Update changes to a third copy and exchange that third copy regularly with the stored copies. Cycle all copies so that one has the most recent data, one is in the middle and one has the oldest data. That will minimize the possibility that the backup will contain already corrupted data. This system is not foolproof, but it is reasonably safe.
If that is too much work accept the fact that you can loose your data at any moment.