ChrisfromDG,
We appreciate you following up with us on this issue, and trying out safe mode. Being that the issue continued to occur while in safe mode as well, let's have you follow the steps in this article: How to use safe mode on your Mac under the section titled 'If the issue continues in safe mode'. We've quoted those steps below for your convenience as well:
If the issue continues while in safe mode, or your Mac restarts several times and then shuts down while starting up in safe mode, you should reinstall macOS and make sure that your Apple software and third-party apps are up to date."
As always, be sure to back up your data on your Mac before performing any of these steps, for extra peace of mind.
How to back up your Mac - Official Apple Support
How to update the software on your Mac
Use the App Store to update apps on Mac
How to reinstall macOS
Have a great rest of your day!