I have a 12V Milwaukee drill (Ni) that I just love but it is in need of a battery again. It charges but as many other older battery tools the charge doesn't last long and I don't believe the power output of the drill is like it use to be. I'm also down to just the one battery, I like to have two so I can keep going when one needs charging. I'm debating the new battery or two, or just letting go of the tool.
I had a large collection of 18V tools with the old Ni batteries and parted with the collection. Flashlight, two drills, circular saw, two chargers and two cases. I already had the replacements for everything but the circular saw by then anyway so I dropped them off at the restore and picked up a new circular saw that used the same Li batteries.
The new batteries are both lighter and more powerful and last longer so the decision on the all but the last drill has been made. I think you are now at the point.
It is almost certainly the battery. A deep power cycle might make it better for a while. There are no way Ni batteries are going to be around for drills and the like for much longer, that is an old technology. Even the replacement batteries I get are now third party.
Can you replace cells in a battery pack? Yes but the batteries are most likely ones with welded tabs. They may or may not be standard sizes so getting a fit and then hand soldering can be an issue. I saved my old 18v batteries for years thinking I would find the good ones left in each pack then make good packs out of bad. I finally just said the heck with it and recycled them. Well actually one got left behind so here is what you are likely to see inside:

Of course your might look different but still the same sort of arrangement. Could it be done, well yes, is it worth your time and the effort, not likely.
Best solution will be up to you. For me it was out with the old and in with the new.
Ed