Out of the blue my Nexus 5 totally flipped out. It only recognizes 215MB of 16GB internal storage, the rest is missing. It's also not getting service. Also, every time I reboot the phone, it goes back to totally factory stock. So I tried unlocking it, successfully, but then on reboot it was locked again. Need to unlock and install custom recovery so I can flash a new ROM, but I can't because of the reset thing. Any ideas?