3 things bother me with this statement;
1) 40% and soon - no-one knows this.
2) Why put 40% correction and worthless dollar hand in hand? Its possible. But a 40% drop is significantly more likely and separate to US currency collapse. And a US currency collapse could, in the right circumstances, spike US equity prices.
3) US dollar close to worthless in general - I am one of the rare ones that believe default has reasonable odds in the medium term if debt continues unabated, outpacing GDP growth like it has for some time.
I also recognise I'm in the minority, most experts laugh at this and I have a tendency to err on the 'plan for the worst' type thinking.
And if US dollar did become worthless, the world could likely go into depression. Likely worse than 1920's as (to oversimplify) 1) back then something like 60% lived in agricultural setting, or had access to family on farms, often owning farms outright, where you could tighten belt and live very cheaply for a few years. Now we have ~90% in urban environments and less home ownership. 2) Peoples expectations are higher. That may lead to greater political/social extremism in response to extreme financial events.
But in response to your question, I'd do what is standard investment advice, keep savings into diversified ETF's so even if you get the loss you get the bounce. And if possible maintain a cash float of X months that makes you feel comfortable should you lose your employment, which is significantly more likely than a full collapse.
If you really think its 40% and soon, feel free to put your money where your mouth is and short the market.
And if you believe there will be something worse go see reddit.com/r/preppers/