Pinterest Inc. shares fell by the most in more than three years after the company projected current-quarter sales that fell short of Wall Street estimates, the latest in a rocky period marked by layoffs and a pivot toward artificial intelligence products.