This is the definition of survivorship bias. There are a ton of tech stocks that you would have lost your shirt on had you invested in them just prior to the crash.
Even if you invested in a company that ultimately became a winner, you'd need to be able to hold on to it throughout the correction. You put your savings in tech stocks, the tech sector undergoes a significant correction, the stocks dive, you get laid off because you also work in tech and now you have to liquidate your stocks to meet your obligations. (Or you just retire at the wrong time.)
Even if you invested in a company that ultimately became a winner, you'd need to be able to hold on to it throughout the correction. You put your savings in tech stocks, the tech sector undergoes a significant correction, the stocks dive, you get laid off because you also work in tech and now you have to liquidate your stocks to meet your obligations. (Or you just retire at the wrong time.)