My Samsung Galaxy S8 died at 7 years. Some kind of thermal failure, I was able to recover my data by keeping the phone in the freezer while I copied. Known issue.
My Samsung Galaxy S21? I figure I've got another year or two in it before it, too, dies.
Having beautiful dead phones that have never had a broken screen or a hard drop is pretty depressing.