Chosen Solution

I have replaced my battery with an ifixit battery and after I did that the iphone restart over and over. I had to put it in recovery mode, and when I did the iphone would show a spinning wheel then restart again. Itunes would then give me a error 4013. Could anyone give me a solution, please.

NAND failure. Only way to fix is reprogram for replace the NAND. Not worth it tbh on an iPhone 6