The constitution prohibits cruel and unusual punishment. It does not guarantee a painless execution.
Yes, and how were convicts executed in the 1790’s? Hanging! A heck of a lot more “painful” than just being put to sleep gently after 25 years on death row.