Ownboard bamboo gt keep turning off on me!?🤦🏽

So My Ownboard Bamboo keeps turning off after I stop during a ride the USB has been unplugged but I was wondering if it’s Tha Bms , Esc or Battery that needs to be changed becuz the battery seems to charge/Discharge fine when I plug the charger in after it turns off it works fine until another dead stop…pls Help…me…:pray:t4: