Have you taken them apart already ?
I have seen the odd Ryobi batterypack where the spotwelded tabs have come loose.
Resoldering it will solve the problem.
Generally I prefer Makita but i fix the odd faulty battery pack for a friend of mine.
Most often they are sub C and are available from any good electronics hardware store.
Check prices per cell first, quite often if more than one cells are faulty it is better to replace the lot.
It is not real good practise to fit one new cell in series with older cells which are already on the way out.
The product of rotation, excitation and flux produces electricty.