If your mayonnaise thickens too quickly or becomes doughy, stop adding oil immediately and whisk in a teaspoon or two of warm water or lemon juice to loosen it. Then, resume adding the oil very slowly, drop by drop.
Mayonnaise is an emulsion, a mixture of oil and water-based liquids (egg yolk and lemon juice/vinegar) that normally don't mix. Whisking breaks the oil into tiny droplets, and the egg yolk acts as an emulsifier, keeping the droplets suspended. When mayonnaise thickens too quickly or becomes doughy, it means the emulsion has become too concentrated with oil, and the water phase is struggling to keep up.
Here's a step-by-step guide to rescue your mayonnaise:
Make sure your ingredients are at room temperature. Cold ingredients can cause the emulsion to break more easily. Also, using a narrow-bottomed jar and an immersion blender can make mayonnaise foolproof, as it creates a very stable emulsion quickly.