Whether or not suitable battery replacements exist in 10 years is probably a function of demand. If there's a large demand for replacements, the market will provide. It's probably worth buying a popular model if you plan on keeping your EV for 20 years. For example, you should probably stay away from the Fisker Ocean [1], but I bet Tesla Model 3s will be well supported 20 years from now.
My metaquestion is: is it even rational to keep a car for 20 or 30 years? To me, the subject of the article seems penny wise but pound foolish. Certainly at some point since 1985, an upgrade would have been positive expected value for better safety, mileage, and comfort.
[1] https://en.wikipedia.org/wiki/Fisker_Ocean