You can use something like https://recessionalert.com/ or a combination of your own signals to time the exit of the market. Of course, it will never be perfect and there will be times where you will get a false positive, but being right most of the time can still massively reduce risk.
Big drawdowns really hurt the geometric compounding of returns. A 50% loss requires a 100% gain to offset.