This is a long shot ... but I thought I'd post it anyway ...

Is it possible, that the reasons for the restarts are not solely software-related, but could possible also be due to a hardware problem ... for example, CPU overheating? I've noticed that at times when my CPU starts to heat up, it does a restart all by itself.

Anyway, just offering a suggestion.