Seems you've got a fatal problem with memory.
Anyway, if you manage to format it, try Amazon firmware file, it's about 200 MB
https://s3.amazonaws.com/firmwaredow..._v2_5.12.2.bin
Or the last jailbreakable version 5.8.7.0.1 (just replace 5.12.2 in the link).