When you mix the filling together, it's vital to combine everything until it's completely smooth and homogenous. It may help to mix the wet and dry ingredients separately before whisking them together, especially since cocoa powder has a tendency to clump. The goal is not to incorporate air, but to be thorough to avoid eggy bits in your finished pie.
Recipe from
Food & Wine.