Concluding that you'll need to replace the traction battery in a truck at the end of the warranty is like concluding that you'll need to replace the engine in a truck at the end of a warranty. It's nonsense. The warranty is not the thing keeping your car running. Do engines occasionally need replaced in old cars? Yeah. And when they do, you don't go to the ford dealer and put in a brand new engine. You get a rebuild, or put a used one in. Some EVs might need that at some point in their long lives. And when they do, owners might decide to get a rebuilt battery, or a salvaged battery out of a totaled EV.
EVs have been on the road in substantial numbers for many years now, and while we're still learning more, it's become fairly clear that the current generation of battery technology does not suffer much degradation at all. Single-digit percentages over 50 or 100K. Even if your $55,000 vehicle lost 10% of its range over 10 years, while you put 150,000 miles on it (at substantial savings compared to a gas vehicle, mind you) you'd still be left with a truck that gets over 200 miles (standard range). Will it sell for $55,000 at that point? Of course not. No 10 year old truck with 150,000 miles gets new truck prices. Will someone give you $20,000? Heck, I probably would!