either or both A and B vs. either or both A or B
I consider that “either or both” should be followed by “of”. That leads to “and” separating the items in the list on the basis that “or” yields a single item rather than both of them. So
It must have something to do with either or both of external environment and internal character.