I found the same answer somewhere else, but it said to leave it without battery for 12 hours or so, to drain the on-board battery. This somehow resets the faulty ram or some memory chip.
I left it for about 12 hours without battery, but it didn't budge. I'll leave it for a couple of days now and...