If the lemon juice comes into direct contact with the eggs then the eggs will curdle. Be sure to whisk the eggs with the sugar first to minimize this effect. Another reason could be that the lemon curd was cooked on too high a heat, which can scramble the eggs. Cook on medium-low heat and whisk constantly to prevent this from happening.