MacBook Pro crash after sleeping for a long time
Occasional kernel panics are more nanannoyance than something to be fixed. 


How serious are occasional kernel panics?


However, if you can make them happen, there is a process to resolve them:


https://support.apple.com/en-us/HT200553