OS X: When your computer spontaneously restarts or displays "Your computer restarted because of a problem." - Apple Support
support.apple.com/en-us/HT200…
In rare situations, your Mac may do one or more of the following: spontaneously restart, become unresponsive, turn off, display a message