People act like index funds are a "risky investment" compared to bonds. But is that actually true? Seems like countries getting into trouble is so common now that bonds aren't as rock solid as they used to be, and over tens of years index funds have shown to be extremely stable.
The risk we are talking here is risk according to the modern portfolio theory. It's the variance of a portfolio. Index funds spread the risk across multiple stocks, to reduce variance. Stock markets have overall greater variance than bonds, so the risk of index funds is is higher than bonds.
The risk decreases with time. This is why you should see index funds as long term investment. In 10-15 year time period total return of index funds is relatively low risk.
There are other risks in all financial investments. Variance is not the only one.
With a long enough investment horizon however, being invested in the entire US stock market has historically worked out very well, and should hopefully continue to do so in the future barring very extreme destabilizing world events. You should get growth that you cannot achieve with bonds.
So it all depends on your time horizon (e.g. longer than an economic cycle) and risk appetite (appreciation vs. maintaining principal).
If you are invested in an index fund and the market nose dives for 20 months you don't have the luxury to wait until it recovers. You are forced to sell at 30-40-50% lower values while the slump lasts. This translates to burning through your nest egg at 1XX% the rate you 'normally' would for the duration of the slump.