Generative AI, banking troubles and a volatile world economy are causing investors to crowd into fewer, larger companies