SHANGHAI/HONG KONG—China’s algorithm-driven quant funds boomed in 2021 as investors sought alternatives to a languid stock market, but the final months of the year saw some “flash boys” bogged down by heavy volatility and their sheer size. High-flyer Quant, a top hedge fund house in China that uses powerful computers and artificial intelligence (AI) to…