The optimistic outlook that fueled many firm leaders in the first few years coming out of the pandemic is turning into one of caution.