Generally, computers are pretty firm but you still you should not trust it completely as they will fail at some point and you will have to face consequences from its failure. However, you can easily prevent this from happening by developing some basic habits.
1: Check whether your computer is going to fail or not. For that, you need to treat your computer as if it is causing a huge failure so that this action could possibly result in your computer failing you sooner. Always assume that failure to be closer.
2: Try to realize the signs of instant failure or a fatal error that results in data loss, damage to your computer and/or its functionality, hardware failure, or other serious issues. Signs of imminent failure usually includes regular poor performance, frequent error messages, unknown programs being installed, frequent computer termination, frequent crashes, or certain parts not working.
3: Preventing failure states towards keeping your computer clean both physically and operationally. Try to clean dust inside the PC, especially on the fans to avoid reduction in performance and overheating. Uninstall unnecessary programs or files on your computer so as to maintain the registry properly. Always run frequent virus scans.
4: Analyze specifications, and the limits of those specifications on your computer. Note that your computer takes up at least some of your computer’s RAM even if running idly, along with its processing power, as well as background programs. So, if a program requires at least 256 megabytes of RAM, and you have exactly the same on your computer, then you can’t run the program properly.
5:If a pop-up shows up asking you to do something irrelevant, then don’t click on it. Rather, use the task manager to kill it, or reboot your computer. Don’t install unauthorized programs and while installing freeware or shareware, read everything, and uncheck any additional “new product notifier” programs, toolbar, or other unwanted things.
6: If you feel something isn’t working properly, then either diagnose the problem yourself and fix it, or call a professional for fixing it for you. You can take advantage of warranties on parts in such case.
7: If the same error message shows up every time you log in, then try to investigate it as those errors could be something important.
8: Give your computer a break sometimes as by using it continuously wears out hardware, and puts unnecessary wear and tear on the hardware.
9: If you have a warranty for your computer, then get a warranty to protect your hardware, so that it can be replaced in the case of a failure.
10: Always run backup of your important files to either other drives, computers, or an online backup service.
11: Once it fails, just diagnose the failure. Write down the cause and if there are error messages, write them as well. If data is missing, nothing works, always write that down. If you know the problem, try to fix it yourself or else contact a professional to fix it for you.