Sudden battery failure possible while driving?

I suddenly stopped yesterday with my SV 650 and it didn’t go on anymore. I first drove about 20 KM. When I wanted to leave again after a break of about 45min, it made after about 50 meters “crack” and the engine went off and there was nothing more. All the control lights stopped. After a while, the lights went on again when the ignition key turned, but as soon as I pulled the starter or even the brake lever, so that the brake light lit up, did I called the ADAC and with its starting battery the engine jumped on immediately. He said that either the battery is defective or some kind of power regulator. Can the battery just break during the ride or get a short circuit? I removed it today and connected it to my charger. The charging current indicator only shrugged briefly and remained at zero Should I just buy a new battery and try it out, or would I rather go to the workshop?