If your custard was too warm when you incorporated the butter, this causes curdling and separation. The best thing to do is quickly cook it when this happens, placing the bowl of Napoleon custard in an ice bath and whisking vigorously until it re-incorporates.