Computer always go to stand by mode

When I work on my computer with the operating system windows-xp, I faced some serious issue sometime I got a message windows preparing to stand by and it's going to stand by mode automatically. I was pissed up with issue and tried to trace the problem using event log. I had found two type of error messages:

A parity error was detected on \Device\Ide\IdePort0.
Type: Error
Source: atapi
Event Id: 5

The driver detected a controller error on \Device\Harddisk0\D.
Type: Error
Source: disk
Event Id: 11

I went through google and found some where saying problem with hard disk or data cable. I changed and check still had the same issue.

Formatted and reinstall the OS, still faced the same issue. And checked motherbord, processor and power supply. all were worked fine. Later the I found the issue was in my processor cooling fan.

I replaced a new cooling fan and the computer works fine. I hope the cooling fan did work properly, so when the processor gets heated its went to stand by mode automatically.

I hope this is may useful to someone who may face the same issue.