That’s why it is the jury who is made of inexperienced citizens selected at random: prosecutors now have the burden to convince them all, including those who empathise with the accused. They are judged over their career by how their prejudice leads them to bad cases, and prevents them from winning cases.
If prosecutors saw acquittals as failure on their part, and need to re-consider their world-view, that would work. I believe the article and the judge see the problem as them seeing such (rare) events as abuse of the system against them, personification of the innocent defendent public, and that’s the source of the issue.
That way somebody only becomes a prosecutor if being a prosecutor is what they actually want to do with their career in public service. It would not be a stepping stone for a further career in politics.
If term limits (de facto or de jure) existed for prosecutors, that would put the brakes on prosecutors optimizing for conviction rate.
Frankly, I think we'd be better off selecting people are random from the population at large to be in such powerful positions.