Wet ingredients went into the filling raw
Very commonMost vegetables are mostly water held inside cell walls. Heat breaks those walls down and the water leaves, and in an open case it has nowhere to go but into the custard around it. That both dilutes the egg — pushing the mixture toward being too lean to set — and leaves free liquid sitting in the base. Spinach, mushrooms, courgette, tomato and onion are the usual offenders, and the amount involved is far larger than it looks before cooking.
What to change
Cook wet vegetables before they go into the filling
Saute or roast mushrooms, courgette, onion, tomato or spinach until they have given up their water and it has evaporated, then drain and cool them before adding. Squeeze cooked spinach hard — it holds far more than it appears to.
Quiche and any open savoury tart with a custard filling.
Trade-off: An extra pan and ten minutes, and the vegetables lose a little of their fresh character.