As per the story of Barbarika, he has to follow the principle that he can only fight from the weaker side. However, if he fights with the Pandavas against the Kauravas, the Kauravas will become weaker, and vice versa. This could make him break the principle and his mother’s promise.