Sorry about the formatting, I'm on the iPad. Here is my EtreCheck blurb. Are you really on an iMac Pro? I've only seen one EtreCheck report from someone with an iMac Pro and that person was reporting something similar. EtreCheck showed that the machine was restarting due to overheating. I was skeptical about shoving that kind of server hardware into an iMac form factor. I wonder if you are having the same problem.
I wrote a little diagnostic program to help show what might be causing these problems. Download EtreCheck from https://www.etrecheck.com, run it, and paste the results here. EtreCheck is perfectly safe to run, does not ask for your password to install, and is signed with my Apple Developer ID.
Disclaimer: Although EtreCheck is free to download and use at first, it will eventually ask you to buy a license. There are also other links on my site that could give me some form of compensation, financial or otherwise.