I tried to fix the phone by buying a new battery. The same issue starts occurring. It starts from the start tho, so it only does it at low battery now but seems to be getting worse. I have tried factory reset and battery calibration. I am stuck for ideas.
I am on stock ROM 4.2.2 16gb Nexus 4.
If there is any other information you need. I will post it. I also have a log of battery current from "current widget", that I can put up if that would be useful.