I would suspect a faulty mid drive. There is no reason for your battery to suddenly work like crap unless many cells inside are disconnected and unbalanced.
It could be a hall sensor fault, winding fault, wiring fault, bad solder joint on PCB, damaged MOSFET...
Do you have the possibility to...