Never forget that.
Currently, the damages caused by law enforcement are effectively funded by an obscure reverse-lottery. This makes them seem free for the majority of people who don't "win" the lottery, yet they can be life-crushing if you do.
Quantifying the damage would allow to those taxpayers to see exactly how their money is being spent, and making the damage legible to the justice system is the only way they can possibly optimize it away.
Which is how it causes the mistakes to go away. Politicians want to get reelected. They want tax dollars to go to things that help get them reelected by generating votes or campaign contributions.
The problem right now is that the defendant gets screwed but there is no cost for that to the police, politicians or voters. Make the voters pay for it and they will immediately want it to stop.