If space in your refrigerator is limited then it’s fine to leave this pie out overnight at room temperature, but as the recipe contains dairy and egg, any longer creates the risk of bacteria forming, making the pie unsafe to eat.