Maybe you’ve read this already (I still have it in my stack to read so can’t give any personal review) but ‘Determined’ by Robert Sapolsky sets the argument that we don’t have free will and that the justice system is flawed because of that.
https://www.newscientist.com/article/2398369-why-free-will-d...