I think it’s shorter than you would imagine. I recall an episode of the podcast Arms Control Wonk talking about the nukes in possession of Ukraine during the collapse of the Soviet Union. Professor Lewis stated that those warheads likely had a service life of 5-10 years. But that may be specific to those Soviet warheads, and I think that different components need to be replaced at different intervals.