I think OP got some good advice up the thread but then the thread was overpowered by - I don't even know who these people are? - moral bigots? I left my husband and realised years after that he was a narcissistic twat and economically abused me. And also in other ways. I am still finding out.
Yes, I was the guilty party but I was so unhappy I was thinking of hanging myself. Sleeping with someone else was less messy than suicide with a 3 year old in tow. Anyway, said husband proceeded to forget about our son. They have no relationship. He is entirely self-focused.
Yet, at some point, I could have written your post, OP (without the gay part) about how loving he is, how I hurt him, how guilty I was, how I hurt my son by depriving him of family and also, how trapped I was. It eventually worked out. It wasn't pretty - such situations rarely are.
People on here don't seem to know life actually, - read too much cheap literature?
OP, quit the guilt. Wait it out, it will change. Things always change. Talk to people who went through similar