Put the batteries on the charger. Plug the charger in, and bump the plug in and out of the wall socket several times, applying power on and off the pack quickly a few times. Sometimes the voltage in the batteries drop below a certain threshold and the charger will read them as “bad”. Plugging and unplugging the charger a few times can jolt some voltage back into the packs and help bring them back up above that “dead cell” threshold. You can do the same thing using a 9v battery, or a car battery charger, - and just see if you can get some voltage back into the cells to get that charger willing to work.
Nothing wrong with trying aftermarket packs, but youll have to decide for yourself if its worth it for you - the investment of money i mean. You can easily buy a modern 12v lithium drill that will outperform that old 3/8 drill. You can get an m12 drill with a 1/2” chuck, new batteries, new charger, for probably not much more (relatively speaking) than buying 2 new batteries for what you have, and eliminate the risk of having aftermarket packs die on you a few months or a years later.
My honest opinion is its not worth it. That what you have it probably 20 - 25 years old, and its time. Buying something new may also opens up future possibilities of getting other new tools too. BUT - its your money, and your choice. If you just “want” to keep the old drill for whatever reason - buy some new packs if you want, if you cant revive the old.
Ebay looks like your best option to pick up some aftermarkets.. you can get 14.4 Nimh packs for not a lot of money. You can even swap the cellpack back into the original Makita battery cases. I have a few cheap aftermarket m12 packs. They work, cant really give a torture test between factory - but they seem to work fine.
If you shop around - or ask some guys to help out - we could prob find a new Milwaukee m12, m18, or Dewalt drill set with lithium batteries for like $100.. 2 aftermarket packs for your makita look like they’d cost you around $35 - $60 all the way up to $120 depending on where you find them.