Yamaha like Bosch and others use CANbus, if your battery has truly got a duff BMS then the battery as is, is of not much use.
How do you know the BMS is toast ?
One can't simply replace the BMS to use on Yamaha and only Yamaha can programme it.
You will need a new battery, if it is under two...