Chosen Solution

This mac got it a little over two years ago and was working perfectly. Suddenly he started to restart and show the message that was restarted due to problem and a report with a panic message in the kernel. I tried to update to the latest version of OSX but a mojave message that the image is skewed and can not complete the installation. I tried through a bootable USB stick with the sierra and I had the same problem. I removed the ssd from the macbook pro 13 and put in a macbook air 11 mid 2014 that I have and use the same connector and get to do the clean installation of the sierra and tried ambem of the mojave and all worked perfectly. I returned ssd for macbook pro and got the same problem. so I was thinking that the problem was on the logic board in the ssd connector and I sent the same to a company called REWA in HK. they sent it back to me saying that the logic board is perfect. any suggestion???

The error message implies a memory issue, so I’m not sure I follow why you focused your effort on the SSD. Your system has soldered RAM chips. In this picture the Orange marked chips are the RAM chips.

While your system does leverage your drive for virtual RAM. I think its safe to say thats not the issue here.