I would certainly leave again - I'm really surprised that this happened to you twice, but any reasonable company would respect your wishes rather than forcing you into a role you never asked to do. It doesn't sound like you did anything wrong based on your description of the events.