Chosen Solution

I got a 5S which is likely water damaged. It turns on but in recovery mode and iTunes got the error 4013 which is in connection with the nand chip as I know. I have read many articles about it and can I just desolder it from the motherboard, clean it, reball it and solder it again? Or do I need to reprogram it with other expensive tools?

Just recalling the nand will not sort the problem. Nand memory chip is currupted. You need to remove the nand clean it reprogram it and solder it back on but you need to be very careful on desoldering and soldering the nand on 5s.5c etc. because there is CPU ither side of the nand and the cpu can be overheated very easily. so you need to be very careful. if you don’t have nand reprogramer remove it and I ll reprogram it for you.

it would need repaired in a programmer, try using 3utool instead of itunes to see if it gives the same issue