The fundamental problem he seems to be pointing at is that notional replicating portfolios can work like an engineering marvel in good times and become inoperable in bad (liquidity) times.
There were many elements to the CDO crisis -- including bad faith by the rating agencies and a prolonged asset-price mania much beyond this stock-market rally. The simpler metaphor is the emission of vanilla stock options. In principle, a bank is only able to offer options because he has the ability to replicate it and neutralize his risk. But if market conditions diverge from the asset replication model, then boom you get LTCM.