I still can't figure out why this "economies of scale" misconception is so popular on HN with respect to JWST. The major costs of building JWST are in the testing + validation + refinement phases, which must be done meticulously for every unit that is built. A JWST "out of the box" is guaranteed to fail: literally, you could launch a million "unrefined" JWSTs and every single one of them will experience a critical mission failure.
Most components of the JWST are not within spec as they leave the factory floor; for many components, the precision required cannot be achieved with machining metrology alone. Remember that system error compounds with every new component that is incorporated. Components have to be constructed, integrated, and then measured/validated with sophisticated metrology equipment after full assembly. If you're lucky, you can modify the components you have to achieve the desired overall tolerances. But a lot of the time, you have to bin the same component a dozen times until you get a batch which happens to be correct (much like in microchip manufacturing).
And this is just for physical manufacturing -- there are multiple other dimensions which are impossible to get right the first time, requiring multiple iterations until your integration tests pass. Many of these test scenarios are extremely expensive to simulate (e.g. full-size vacuum chambers, launch and zero-g simulators), and must be done to validate every single phase of a 5-year mission to an extremely high chance of success (from transport to launch site -> launch -> full deployment -> science operations). Something as simple as a wrongly-tensioned cable is enough to scrap an entire mission -- the validation is absolutely essential to ensure that anything from a manufacturing defect to a simple human error doesn't make it through to launch.
Even in spite of all the lessons learned from JWST 1, I would be surprised if JWST 2's cost was less than 50% of JWST 1 (realistically, I'd peg it at ~80%). The testing costs are a very high fixed cost that must be paid for every unit you make. There's no other way around it.