Since a wipe data/factory reset will not clear the problem, it is safe to assume that there is some issue with memory. Since your were able to get the phone to boot at least once, but it was not functioning normally, it is fairly safe to assume that the memory is not permanently damaged. Based on these assumptions, I would guess that there may be nand read/write corruption. My reasoning may be incorrect, but it is sensible to try to clear the nand r/w corruption next to see if that will clear up the issues.
Instructions to clear nand read/write corruption. It is critical to follow these steps in order.
Odin3 v1.85 is recommended.
Perform a wipe data/factory reset both before, and after if needed.
1) Download the Tar version of Siyah 2.6.14 Kernel
. Flash it in PDA Without ticking Re-Partitioning
2) Flash the Tar.md5 of the full stock Gingerbread distribution from the Download Repository, I777UCKH7 including the bootloaders and everything, in the PDA slot.
3) If that is successful you are done. If it is not, then:
4) Download the SBL Bootloader from the Download Repository. Flash it as PDA in ODIN, without ticking Re-Partitioning. (Please observe normal bootloader flashing caution.)
5) Flash the Kernel, as in step 1.
6) Flash the full stock Gingerbread distribution, as in step 2.