That completely ignores leaving the gold standard... which was necessitated by... runaway govt spending
The size of the US government's outstanding liabilities at the time isn't relevant, what affects prices is money flows, not stocks.
[1] https://en.wikipedia.org/wiki/Money_supply#United_States
[2] Back then the Fed wasn't willing to just expand its own balance sheet significantly on its own initiative as it is now.