Right click 'My Computer', click on the advanced options tab, click the 'startup and recovery' button, and uncheck 'restart automatically'. Next time it will show show an error message instead of just restarting, that will be much more useful to debug the problem.