Launching several doesn't solve the issue of needing a design and construction that actually works. For something nobody has ever built before and we can't really test in zero g without launching etc.
Unfolding the heat shield was a relatively minor design issue compared to say the instruments, we just had less ability to actually test it on the ground.
We'll be able to design modular space telescopes that benefit from economies of scale, so that we'll be shipping up the sun shield in separate pieces anyways so if any particular one is lost that's okay we'll have an assembly line to produce more.