Dollars stuffed under the mattress don't compete with other dollars, raising their value and enabling them to buy more of the available goods and services.
Dollars aren't resources. The resources exist and can be invested in different ways regardless of how many dollars there are.
When there is a bubble collapse, like the collapse of housing bubble, demand for the thing that is being overproduced collapses. That has to happen in order for the economy to get back to producing things people value and are willing to buy with their own money.
That collapse is a catastrophe for investors and workers invested in the bubble, but the other industries now can get all their raw inputs for less and can now grow.
Keynesians look at the collapsed industries as if they are the only source of growth for the economy. But those unviable industries have actually been diverting resources away from viable ones. The collapse of the artificial bubble is a much needed correction.