A bit hard to tell at this point.
What I suggest is that you temporarily remove any external devices, except the keyboard & mosue. Then start up your iMac in Safe Mode. Finally, run an EtreCheck report, and optionally, post it here if you need assistance with interpreting its results. If you are not familiar with EtreCheck, it is a diagnostics app, developed by a valued forum member, that greatly aides in troubleshooting difficult Mac issues. (There is a free version available.)
The report should provide us with some potential causes of these crashes.
Just to be sure where did you look to see if there were any crash reports? Also, did you see any messages that indicated that this was a crash vs. a kernel panic?