That was the main reason I sold my Himalayan. It put me in a dangerous position twice by cutting out at right hand junctions leaving the traffic bearing down on me. It also caused at least one bike write off I know about at a roundabout where the bike bike was rear ended when it stalled.
I tried every conceivable fix for it, too many to list. I tried tricking the ECU with a resistor and it made no difference. I even bought the whole Powetronic ECU kit that sits on top of the OEM ECU and it made no difference to the stalling. My bike would be fine for a couple of weeks then out of the blue have a fit of cutting out, totally unpredictable. I replaced all the relays with better quality items, checked all the wiring harness and connectors, valve adjustments, removed the emission stuff, all made no difference. All the Himalayans do it, some a bit worse than others. I think the reason it was inconsistent was due to temperature, traffic conditions (it was worse in urban places) humidity and fuel quality.