MBP randomly started shutting down without warning
Recently my MacBook Pro has started shutting itself down (battery dying) without giving me so much as a warning. It happens at around 40-50% battery, and it completely dies, all unsaved work is gone. Even pressing the battery indicator on the side does not light up.
When I plug it back in, it still says it has as much percent left as when it died.
It has not "gradually" started doing this - it just spontaneously shut down one day and has been doing it ever since, for almost a week and a half now. I've tried resetting the PRAM and SMC to no avail. I haven't tried erasing and restoring, and I will only do that as a last resort.
Why is this happening? How do I fix it?
MacBook Pro, OS X El Capitan (10.11.1), 2010 13-inch, Custom SSD