Chosen Solution
So my iPhone 6s works just fine until I try to update or turn it off. It is then stuck on boot loop and get an error 4013 when I try to restore on iTunes. The weird thing is when I let the battery drain completely and let it dead overnight than the next morning I charge it and it turn on with no problem. The phone is not much than 1 year old and the battery life is at 81%. Anyone have an idea of what it can be? Thank you!
Such 4013 error usually happened that the corruption data of the Nand Ic. You have to remove Nand with Motherboard and reprogram with programming tool then you can fix it.This process needs repairing skills otherwise contact the cellphone repair export or ifixit tutorials. This tutorial that you have to follow may help you that`s for iphone6 plus process are same as .