If JWST was designed for two years and a hard shutdown it would have flown years ago and we'd be on JWST Gen 3 by now, doing actual science.
JWST's design lifespan is not significantly driving its cost. Its cost derives from its complexity, and (crudely) its complexity follows from the aperture diameter and temperature it requires to achieve the scientific objectives chosen for it.