I am lucky if my cell phone lasts more than a year. That's definitely you, not the phone. Most people's phones last longer. Partially evidenced by folks complaining about updates stopping after a few years.
I have a feeling that even if today's hardware manages to last 50 years, all knowledge of how to talk to it will be long lost. I am sure some of the code/firmware will be proprietary and then contractor will go out of business and that is that. Most of today's hardware isn't expected to last that long - and it wouldn't matter if much of it did. No one wants 50-year-old medical equipment unless it hasn't improved in 50 years. A 25-year-old computer isn't worth much to the average consumer. And some stuff will just be outdated: Do you really want to use one of the digital typewriters that combine a small-screen simple word processor with a typewriter?
Things that we build for longer-term science generally is built to a different standard than the stuff we use at home and has different constraints and different sorts of moving parts. Especially when considering extreme environments. And most of these are made by governments, universities, and other institutions that tend to have a long lifespan when compared to corporations. And when they aren't, we can make sure to make laws so others can use science research things even if the company closes.
Additionally: I think everyone expected Voyager to die long ago. It is akin to a fridge that happens to still be running 50 years later. A lucky accident.