how did you test the kickstand switch?
it still sounds like the switch
The kickstand switch has no role to play, because it never happens when a bike is warmed up.
Perhaps it has more to do with oil having an impact on clutch, so when you pop the first gear in the thumpers have tendency to stall. I think this works for me as an explanation.