Hi imca35,
From what you described in your original post, we recommend trying the steps below since your Mac restarts unexpectedly.
If your Mac restarts and a message appears
Next, we’d like to show you how to perform the recommended troubleshooting steps via the link above. Please click to open the link, then read through the steps in the section below.
If the kernel panic is caused by a known problem, the faulty software is identified. To make sure that this software doesn’t continue to cause kernel panics, move it to the Trash.
If the faulty software is not identified and your Mac continues to experience kernel panics, try the following:
*Restart your Mac in safe mode. If it successfully starts up in safe mode, choose Apple menu
> App Store, click Updates, then install any available updates.
*Uninstall any plug-ins or other enhancement software from manufacturers other than Apple. If you recently updated macOS or an app, plug-ins and other software that worked in the past may no longer be compatible. Read the manufacturer’s documentation (including Read Me notes) to be sure the software is compatible with your version of macOS.
*Disconnect all devices except for an Apple keyboard and mouse. Remove hardware upgrades from other manufacturers, such as random-access memory (RAM) and Peripheral Component Interconnect (PCI) cards. Then try restarting your Mac.
If this resolves the issue, reconnect one device at a time, restarting your Mac after reconnecting each one, until you determine which device is causing the problem.
*Use Apple Diagnostics to diagnose problems with your computer’s internal hardware, such as the logic board, memory, and wireless components. See the Apple Support article Use Apple Diagnostics to test your Mac.
The reason why we are recommending the steps above is because they will show you what to do if your Mac unexpectedly restarts.
Please let us know the outcome after giving the above steps a try.
Thanks for using the Apple Support Communities.
Cheers!