Most people earn money over time. Putting these savings 100% into the stock market as you earn them is pretty reasonable. It’s only a sudden cash windfall that presents problems.
The fix for that is to put money in 1, 2, and 3 year treasuries, and invest that money into equities as the treasuries mature.