Poor woman.
This is the problem at hand. It is not supposed to be a mental health issue - to say so is offensive, and I'm sure at the height of her dysphoria, this woman would have passionately agreed - but the concurrence of mental health and trauma and abuse in those suffering dysphoria is heavily evidenced. As is people who are Autistic and/or homosexual and are experiencing challenges with societal expectations of gender and confusing information around gendered expectations and being born in the wrong body.
Under these circumstances, to do something so permanent, drastic and damaging to a person as this kind of irreversible surgery risks that the person may come to find that they a) now regret those decisions b) do not feel that they had the ability or capacity at the time due to their other unmet needs to have been able to make this decision and to have allowed them to was irresponsible of those who carried out the treatment (to put it mildly compared to how I have heard detransitioners voice these feelings) and c) that they were encouraged and hurried towards these drastic solutions with a lot of affirmation and encouragement, which makes those parties involved and responsible.
There is not a way to fix this. Miranda Yardley has described in great detail the need to do the next thing on the list in chasing the dragon of feeling better, of the distress being ended, and the awful realisation when everything is finally done that it has not been the solution after all, and the distress is still there. Yes, some end up happy and fine with their choices; the number of those who are not, who are permanently harmed, is building. Some of the children currently on the experiment of blockers and hormones may end up adults too ill to earn a living or without the capacity to ever have an adult relationship as well as having lost fertility.
In essence: this is one of the reasons why capital punishment was ended. However small the risk of wrongly permanently destroying a life is in the big picture, the process of investigation and trial is not sufficient to justify the harm caused. It is not reversible if it's later found to be, despite everyone's best and sincere efforts, wrong.