I have my ATH-M40X still, they were purchased in 2017, and are still going strong. I’ve dropped them a dozen or so times in that 5 years.
The lower end of Audiotechnica aren’t “poor” build quality by any stretch, but neither are they “great” the best I could say is they are “unremarkable” in build quality.
If they can last 5 years and give me no reason to expect I won’t get another 5 out of them, then better, more sturdily built cans should easily last 5+.
More to the point, if I didn’t expect I could get at least 5 years out of a pair of multi-hundred to 1000+ dollar headphones, I wouldn’t’ve gotten involved in this hobby to begin with. These things are too damn expensive to be replacing every couple of years.
It all depends on the brand, which brand of headphones you use, and how you use them. It is not necessary how expensive headphones you use, you can do low-budget headphones of any brand for a long time. Like, take me I have been using Artis.in company BE110M TWS Earbuds for 2 years and still very good condition.