The shells went in before a skin had formed
Very commonA piped shell left to stand loses surface moisture and forms a skin that is dry to the touch. That skin is what makes a macaron behave differently from any other piped meringue: it resists the steam generated underneath, and the steam takes the only path left to it, lifting the shell away from the tray at its edge. That lift is the foot. Without a skin the surface is the weakest point, so the steam goes straight up and splits it. Humidity is the usual reason a skin does not form in a normal resting time — the air is already close to holding as much water as it can, so the surface has nowhere to lose it to.
What to change
Rest the piped shells until they are dry to a light touch
Leave the piped trays uncovered and touch the edge of one shell lightly. When no batter transfers to your finger and the surface feels matt rather than tacky, the skin has formed. In a humid kitchen this can take far longer than a recipe's stated time, or fail to happen at all — running an extractor, a dehumidifier or simply not making macarons on a wet day is more reliable than waiting longer.
Any macaron, and any piped meringue that is meant to rise away from the tray.
Trade-off: Resting too long is also possible: a shell left for hours can dry unevenly and bake with a dull, blotchy surface.