I know this is an older thread, but I'll shed some guidance.
Baker's chocolate, or anything you add during the boil will not lead to infections in your keg. The sourness was caused by an infection of an infection during or after fermentation.
For my pastry stouts, I add a combination of...