Hey there toneddie,
Thanks so much for using Apple Support Communities.
For this issue we would recommend that you review the article here: If your Mac restarts and a message appears - Apple Support. That article covers this exact issue and has some really good guidance that is worth reading up on. Additionally, that article features steps that you can follow which we would recommend working through since they offer the best shot at getting this resolved.
That article also notes that if the issue continues to occur, you may want to reinstall macOS by following the steps in this article: Reinstall macOS - Apple Support
We hope that this information is helpful.
Have a great day!