It doesn't matter if a vast majority of people are not rational economic actors. It only takes 1 rational actor with enough capital to take the other side of all the bad bets, and the market will be priced correctly even if the other 99 people are irrational.
'Enough' [capital] is doing a lot of work in that sentence. In the limit of a one-sided irrational market, the 'rational actor' would need to take the other side of every open transaction.