Anthropic told investors its revenue has surged ahead of a planned stock market debut. Some investors are growing concerned about how much money is being spent on AI infrastructure.