Check the side stand sensor wiring, sometimes it gets loose and messes up the entire bike.
It's supposed to be activated when the side stand is down, and shutting off the engine for safety purposes. But there are cases when the sensor is not placed correctly and is permanently activated.