Phantom hits are a bitch. I'd say TPS out of sync but it's occasional so it can't be that. Clutch in too soon? I think clutch in runs on a different lookup map. I know some Japanese bikes do. I can feel it on mine.
Dynojet the idle columns a spit higher. But then again, you are trying to repair a phantom that when stalls, it's electrical, not fuel.
Thinking things out is all. So as not to throw parts at good known working ones.
For the bike to shut off with zero at the dash, it's something 'main.' Like a faulty 30a fuse say. I'd check the posi lead from battery to starter relay. Loose there?
Clutch in is the stall. So it's more a safety loop, but here we go thinking zero current at the dash. Back to something Main in the loop. Just guessing here.