Thank you for your question.
I believe rather than eunuch, who is usually referred to males who have been castrated; you are referring to “homosexuality.”
Anyhow, even though the body is of a male or female what matters is the gender that person identifies with. That identification could be an issue and that is where a karmic account resides.
A soul in a male body could actually feel like a female trapped in a male body. This obviously will bring suffering.
One of the concepts to understand when we deal with duality is that in body consciousness, there will be a longing, neediness for a “complement.” That complement is an “opposite.” That perception of opposite is not determined by the type of body that a soul receives but what this soul thinks about himself/herself to be.
Still the rule of “a maximum of 2 births in the same gender” holds true; however, that is “physical gender,” and not psychological. (what a person feels to be.)