That decision might prove in hindsight to be incorrect, based on new information or a fresh perspective. The judge cannot be held accountable for that.
We accept this as part of the job, that difficult decisions cannot always be made perfectly within any legal framework, but still need to be decided.
If this results in disproportionate punishment, the system is at fault - the system of laws - not the judge, who was doing their job.
The judge's decision might alternatively prove to be corrupt, in that the judge has been influenced by something outside of their training, knowledge of the law, and the evidence. The judge should be held accountable for that.