Yes, 5 years is about right for untreated wood - last year was the 5th year on my allotment, and a lot of the time was spent ripping out rotting wood that I had used for raised beds. I don't have them now, I just mound the soil in long narrow beds with paving slabs for paths in between, and build these beds up by adding composted kitchen waste and well-rotted horse manure. It's a lot easier to manage, and I can get to the soil to dig if I want to, and the slugs haven't got so many hidey-holes.