there are several possible reasons for this behaviour.
hardware issue
software issue
Do you know what apps were open when this happend?
How was the battery status?
Do you use a sdcard? Maybe there is an error on this, causing the crash?
I suggest to install “catlog” (or another log app) and check the log after such crashes.