I trust DDR3 to last decades.
DDR5? I've had three different sticks, from different brands, on different boards, die on me because of this stupid idea of adding the power delivery circuit in the RAM stick itself. So RAM manufacturers cheap out or don't pay enough attention and your stick die, meanwhile, motherboard manufacturers have been dealing with multiple sensitive voltage rails for decades and have more than enough experience keeping them working.