Ipad stuck in power on loop
So my ipad restarted like 3 times while using it, then I tried updating it beca I thought that would help. Mid update it crashed again, but this time it didn’t power back on it was only apple logo for 3 sec and then black and then the same, so it was in this weird loop. Then I put it in restore mode and tried restoring it with macbook and then as the process started ipad turned off and exited restore mode and apple logo showed and then into recovery mode on the mac it said error 4013. I tried everything and it doesn’t want to work. Can someone pls help?