It's hard to thicken pesto once you've gone too far with the olive oil. I recommend adding a little more spinach and basil to the pesto, then pulsing it in the food processor until it reaches the desired texture. Give it a taste, and add salt, pepper, and parmesan as-needed.