Hi rerimando and welcome to AO.

I have some questions:

1. Is this Win 98 Second Edition?
2. Does it actually shut down the computer or does it reboot it?
3. Does it happen if you boot into safe mode ?

As a first step, try booting into safe mode and run scandisk then defrag.