I am just a beginner, too, so maybe you should wait for more experienced answers...
I would try to find the original images and flash them via fastboot. As far as I understand it, this would fix the corrupted partition.
But again, I still have little knowledge and an almost bricked phone!