Capitalism cannot do that - at least, market capitalism cannot do it (monopoly and monopsony capitalism could, in theory, but in practice doesn't). "Generating" lots of idle and unused and expensive capacity dragging on the bottom line is exactly what capitalism does not do.Capitalism can do this, I think, without too much issue: just generate high-volume of emergency capacity in the health-care system - e.g. buildings that are empty and only maintained to the basic level for the vast majority of time, but with a ring-fenced fund built up from years of no emergency that can be used when the emergency hits, thus not significantly impacting the underlying economy.
That's one of the things socialism can do, and often does, that capitalism cannot do and does not. Compare Cuba's past fifty years of emergency health care capacity with any - any - of its capitalist neighbors, regardless of their relative prosperity, for example.
In the US right now it's the politics as corrupted by capitalists and how the government has been handling capitalism.. I just look at it as an issue but it's just incorrect IMO to label the problem as capitalism. It's politics or how the government is handling things
Of course the problem is with the politics - capitalism just does what it does, it's government that is supposed to set it up, keep a leash on it, make sure it remains market disciplined, make sure it pays for the resources it uses (social and material), prevent it from destroying the commons, and so forth.
It's not capitalism's fault, for example, that the US health insurance industry is employer based while being allowed to both control access to and profit from basic medical care, creating a raft of perverse incentives that results in the majority of its citizens unable to obtain the standard medical care available to any other citizen of a First World industrialized country, and leaving the entire country wide open to viral plague. It's the fault of the Republican Party, whose corruption by capitalists prevented government regulation and setup of that industry.