There may be two reasons that this happens to your flan, either the temperature is too high or the cooking time is too long which both results in overcooked leche flan.