Not sure TBH, and I think it's (MAYBE) more likely a symptom of the machine having the capability of using thunderbolt 5 (i.e., new version of thunderbolt controller with new software driver). machine sleeps, new driver doesn't quite re-initialise things properly after wake up.
In terms of "new things" (and thus, new drivers to potentially have bugs) that we haven't seen in other devices yet, thunderbolt 5 is the big one.
You can certainly try!
Yeah thinking a bit more about this - when I was using thunderbolt it was via TB3 dock (but TB5 port on the MBP M4 max), everything plugged into the TB3 dock was via USB.
So, its not the end device protocol that matters, but at least for me with only thunderbolt 5 ports, the thunderbolt 5 port or controller being involved.
I'm not sure how the USB4/TB4 ports are routed internally on the Pro mini - whether they are direct off the SOC or as a sub interface off the TB5 controller - if they're on a seperate controller maybe you might have more luck with less crashes using the USB4 ports. If they're "hanging off" the tb5 controller internally it probably won't make any difference.
Really interested to know if any base M4 Mac people are experiencing this issue - I really suspect not as Apple would have been using TB4 on the iPad Pro with m4 for months at this point - that driver is probably well and truly stable by now. sure, IOS vs. macOS, but the software control of the hardware would be almost identical now I'd wager due to the same CPU, and changes to macOS kernel moving in that direction with M series.
Then again maybe thunderbolt has nothing to do with it, its all speculation at this point, but speculation based on symptoms and "what's new".
edit: I have a crash thread for the MacBook m4s... based on the comments in this thread with the mini, I think we might be able to rule out the root cause as wake from sleep. I thought that may be involved as it was always after I opened the Mac after closing the lid, but that's generally always some time after I've either docked or undocked it.
If the people having crashes with the mini are purely based on thunderbolt connect/disconnect maybe sleep has nothing to do with it.