Still, I wouldn't stress about throwing things out. Stress about initial purchases instead.
When I purchased them, I had no idea that would be the case. My perfectly good iPhone 12 mini is already at its last legs (I bet a couple of years), thanks to iOS 26 and the liquid ass. Why is it so? Why should I stress about initial purchases? I’m not that poor and young, sorry, I’m worried about the footprint. And I hope you would one day too.
After that, don't stress at all. As you say, you had no idea at the time of purchase, so toss it in the dump and move on.