5th amendment:
Considering that the punishment here was death, I don't see how failure to carry out the punishment because of a malfunction makes a subsequent "retry" a second punishment constituting double jeopardy. The guy never received the punishment in the first place; he just received a little "electro-shock" therapy.
8th amendment:
Philip has argued quite well that the whole "death penalty is cruel and unusual punishment" argument profligated by Brennan and Marshall in later times is fallacious due to the Constitution's mentions of "death", especially in the 5th amendment. Therefore, I fail to see how any malfunction in the carrying out of the death sentence constitutes "cruel and unusual punishment" without any showing of intent on the part of those carrying out the execution to prolong pain and suffering purposely.