Catholicism's sexual teachings are very unworkable and even cruel. It can and does cause psychological problems. But the Catholic Church doesn't really have any moral authority at this point. They've also changed doctrine before, like the 180 they did on "outside the Church, there is no salvation" in Vatican II, throwing out centuries of dogma on the matter. They also exclude Jews from being proselytized, violating Jesus' call to "make disciples of all nations". Then Francis changed the Catechism to make capital punishment totally impermissible, when that was never the teaching beforehand. So I guess it comes down to what your personal limits are. My limits with that Church are far since transgressed.
I think your examples illustrate that it is a bit naïve to suppose that dogma in the Catholic church is immutable.
Personally I see no reason to accept the ludicrous proposition that every piece of dogma must be infallibly correct, for all time, just because the church prays for (and then claims) divine inspiration for its judgements. There is a reason why papal infallibility, for example, is strictly circumscribed. In the end all dogma is mere human interpretation of what is thought to be God's will, and as such may well be discerned imperfectly from time to time. I think myself that
@Glaurung 's understandable discomfort - which like you I share - over the church's approach to sexual morality can be approached in that light. I think a lot of it is just wrong, frankly. But then I have never bought into the notion that one has to accept 100% of doctrine or leave the church. I think that's ridiculous to expect, for any thinking person.
There are other doctrines and traditions that have not always been present. The tradition of priestly celibacy seems only to have become mandatory after the first thousand years of the life of the church. The practice of private regular confession seems to date from about the same period. So it does change over history, which is what one should expect. I don't see that this conflicts with the idea of divine guidance of the church's teachings.