I had this same issue happen with my mid 2012 macbook pro a1286. The issue turned out to be the apple serial number sticker on top of the ram slot bracket. For whatever reason, this is a layered sticker with foil, and I guess that the sticker had maybe shifted or degraded slightly with time and heat and shorted the ram contacts. I ended up removing the sticker entirely, laying down some heat resistant Kapton tape in its place, and putting the serial number sticker back on top of that to be sure there was no chance of the sticker shorting the contacts again. Problem solved.