What exactly is a Windows Error and how can they beavoided?

My current computer is alerting me that I have over4,000 windows errors. I am not sure what they are and what to do about them. I am getting a new computer soon and don't want any problems.

Anonymous2014-06-26T07:42:09Z

Could be a hard drive 'sector' problem (blemishes on the platters) and Windows can't 'read' the necessary file(s).
XP corrected those only by a manual operation; later OS's did it automatic.
What OS is being used?

Anonymous2014-06-26T04:05:24Z

by maintaining a good compstyle