Check all your relevant fuses and relays, try wiggling when you get it started and see if that causes the cutout.
Check regulator plugs are not loose and that the bike is charging.
Try cycling clutch and kickstand cutout switches. Also check their electrical systems are not cut, loose or corroded etc. If not loose or damaged visually spray with electrical cleaner, separate and clean etc.
Wiggle or operate them when you get it started and see if that causes the cutout.
Corroded starter motor cables connectors or starter solenoid