For what little it’s worth…
Going so far as to, just for example, make oneself a eunuch is forbidden, in fact, it can or at least has in the past barred your entry into for example, the priesthood, by decree, though I do not know if some of these are still in force or not, the moral reasons behind that forbidding remains to us to consider, and I do not think such a person would manage to get in even if the law is no longer enforced directly.
The saints I read of overcome lust without resorting to the above. There is no tradition of doing the above. On the contrary, it is spoken against. Moreover temptation occurs interiorly, the devil does not require a person to have certain body parts to tempt consent interiorly to various desires, or produce those desires.
In other words… it’s not the body that’s the problem, it’s the interior life.
So too, temptation and overcoming it is part of the path of salvation. And surrender to Divine Providence.
The virtue of **temperance **is all the more necessary in these times. That is limited use of all things, in
moderation. I think that many mortal sins that are habitual are the result of intemperance, that is doing any activity to excess and so having a habit of excess and reliance on something worldly, that is too fundamentally part of a person.
Temperance has been key in my life towards purity.
If you’re having problems with lust issues,
get rid of the television (everyone should, issues or not), secular entertainment, and get out of the house often, have a strong daily prayer life, and do not overuse the computer – and when you do use it have filters, like K9 protection, ad-blockers, image blockers, etc. Or if necessary, do too cut off the Internet/get rid of the computer. Modesty of the eyes is essential, the habit of not looking and hating rather than liking even that which may be permissible.
St. Alphonsus Maria de Liguori writes about it.
Get rid of entertainment that has anything to do with temptation. So much of it is based on impure relationships, yes plenty of old movies, old books, places at first thought perhaps likely to be better.
Replace things you get rid of with books by the saints.
All entertainment that display or produce sins against the name of God, using His name in vain, blasphemy, should be gotten rid of. Another reason for no TV.
Start living like a monk in the world. One has to give up impurity sooner or later, all marital relations are gone forever after death, period, permanently. For those who go to Heaven and those who go to Hell.
Vices are bad habits. We form virtuous habits to overcome them. It is quite possible to form the habit of hating looking at women impurely, or even to hating rather than appreciating any external beauty not impurely, but because it is an occasion of sin, so that it is almost instinctive and follows through unconsciously.
This habit then guards you with far less active work than it is put through to produce it.
A long term vice has formed long term habits of pleasure association with it, but these can be broken by long term virtue, forming new memories and associations with the objects.
Even a eunuch can sin with impure attraction, because it takes place interiorly, in the will and the pleasure association, which can very easily occur in them as well. And so too someone who has formed habits of vice.
I think you truly need a good spiritual director/confessor relationship.

Though we want the best we can get in a spiritual director or confessor, even a highly flawed one can help a person with certain sins that are common, as long as he is properly educated on how to help a person with that particular sin.
‘To those who wish to stand in God’s grace, neither the guardianship of saints nor the defenses of angels are wanting.’
St. Hilary of Poitiers
‘He who does not like working, feeds passions by idleness and gives his desires freedom to fly to kindred objects. This is specially evident in prayer, for then the attention of the mind is wholly absorbed in what occupies the heart, and thought merely turns over and over the suggestions offered by the stirrings of some passion, instead of conversing with God and asking Him for what profits it. Knowing this, St. Paul vigorously attacks idleness and by his Apostolic authority commands all to work. [II Thessalonians 3:6-12] Work is an anchor for thought and gives it a safe direction. Let storms and gusts of wind come from all sides, threatening shipwreck – thought stands firm, kept steadfast by work as by an anchor; even if somewhat agitated by rising suggestions, it is not led into danger, for the bonds that hold it fast are stronger than the driving winds.’
St. Nilus of Sinai