In your winXP control panel > system > advanced > startup & recovery setings > under the system failure section, you will see an option for "Automatically Restart"
If you have that checked, any windows sys crash will execute an Auto Restart
If you dont want that, uncheck the option
As for why its crashing in the first place, you'll have to review your windows events logs