I'd say discharge to 15% then recharge to 100% twice. If the battery doesn't straighen up in that time, it is likely too old. Buy a voltmeter to be more accurate than the stupid 5 rectangle display on your bike. Charge % tables are on lunacycle.com, click a battery of proper voltage and then follow the link to the specification.
There is a tendency in industry to build the spare parts at the same time as the product, then store them until some **** buys it. Works on steel parts, not on electronic connectors batteries or electrolytic capacitors. Storage on the shelf wears them out, too.
I bought a new LiIon battery for my 2015 cell phone last year from batteries.com. It had 1/3 the operate time of the phone when it was new. When it went to 1/6 or 6 hours without the charger, I bought a new phone. From ***** #^$*!
Sounds as if that is what happened to you. If you can't adapt a generic battery from a reputable vendor, buy a new bike. In the US I found a lunacycle battery to be as advertised. In Canada people like grin technology. In Hong Kong people like Em3ev
There are battery repack services in LA, LV, Ohio. See the thread under maintenance forum. You have to haul the battery there in your car, you are not allowed to ship it. Hazmat shipper certification takes thousands of dollars plus business liability insurance.
If you live in ***** there are many more services.
I wouldn't try to repack the battery myself. Besides setting your workshop on fire if your weld penetrates too much, many of the cells for sale to individuals are as fraudulant as the batteries I bought from amazon & ebay vendors. A recent poster was proposing to buy flashlight grade 18650 cells. Fine if you want to go 3 mph max with 3 stacks of 14 cells, or haul around an 80 lb battery with 50 stacks.