I can't believe it but I found it !!!!!!! Yeah !!!!
Pure coincidence, though ...
I was once more testing whether a UPS would help (which of course it did not), but noticed that the X32 digi mixer display starts to behave funny a few seconds before the X32 reboot happens ... so I tried fiddling with X32 mixer rotaries in that period and found it very slow responding as if it would be processing a lot of stuff ... and wondered how that can be???
hmmm ... the only time I had seen that before was when I had a MIDI loop going and so I started looking inside Sonar and found that somehow the default option to "Always echo current MIDI track" has turned on (which is totally strange because I hate that option and have it off ALWAYS) ... anyway, what makes it even stranger: the "current" track, which was set to auto echo MIDI, actually was a hidden + muted + archived MIDI track (hence I had never seen that, grrrrrrrrrrrrrrhhh!!!) which contains a single prg chg instruction (well, but that's muted and archived,right???)
So with that "Always echo current MIDI track" it must have received some MIDI messages from the X32 and echoed it back out (no clue what that could be ... I only have a single 1 in there per scene to change external FX once at song start) ... until it must have been enough to fill up some memory/buffer in the X32 and BOOOM !!! reboot ...
So this is 100% reproducible and I'm sure if Behringer RnD looks into target.cpp, line 94 this will have something to do with memory allocated to MIDI messages ...
Neither Sonar nor X32 seems to have any sort of MIDI loop detection, which is strange, especially if the consequence on the X32 side is a crash!!!