The sugar never dissolved into the foam
CommonSugar in a meringue dissolves into the water of the whites and stabilises the foam. Added too quickly, or before the whites have enough structure to hold it, it does not dissolve — and undissolved crystals draw water out of the foam, which then pools. That is the syrupy weeping seen under a baked meringue and the gritty texture felt in it. Rubbing a little between finger and thumb detects it before baking.
What to change
Add the sugar slowly, once the whites hold soft peaks
Whisk the whites to soft peaks before any sugar goes in, then add it a spoonful at a time, letting each dissolve before the next. Caster sugar dissolves far more readily than granulated. Rub a little of the finished meringue between finger and thumb: any grittiness means undissolved sugar, and more whisking is the correction while it is still raw.
Any raw-whisked meringue. Cooked styles dissolve the sugar in a syrup first and avoid the problem by construction.
Trade-off: Slower than adding it all at once, and it is the step most often rushed.