How can I remove bitterness from custard after adding pineapple to it?
You can't. This is caused by an irreversible chemical reaction. The bitterness is there to stay. 

If it is just a tad too much for you, you can try diluting: make more pudding and mix. But if it is the strong bitterness I know from mixing mix and fruit enzymes, that won't help either.