Over whipping the filling and/or using cold mascarpone cheese are reasons why the filling could curdle.