Mid 2014 MacBook Pro randomly shutting down
So I have been having a problem for a while now with my MacBook Pro randomly shutting down, and I was never able to figure out the cause but tried a few things like resetting the SMC and running the built-in diagnostics tool which didn't show any problems. Recently I tried searching again online for solutions and came across a site which said to run this command in the terminal to see what caused any shutdowns in the last 24hrs. The command I used was
log show --predicate 'eventMessage contains "Previous shutdown cause"' --last 24hr
and these were the results
2020-11-24 11:58:52.793456-0800 0xb1 Default 0x0 0 0 kernel: (AppleSMC) Previous shutdown cause: -128
2020-11-24 15:18:20.792002-0800 0xb1 Default 0x0 0 0 kernel: (AppleSMC) Previous shutdown cause: -128
2020-11-24 21:53:07.823758-0800 0xb2 Default 0x0 0 0 kernel: (AppleSMC) Previous shutdown cause: -104
According to the codes -128 is unknown but might be linked to the memory and code -104 might have to do with the battery.
So does anyone have any ideas on what could be causing the issue based on the info above? The problem seems to happen randomly but sometimes seems to be more likely to happen when running an intensive program like Adobe After Effects however it has happened when just browsing the web or even in sleep mode with the screen off. Furthermore, it doesn't seem to matter what the temp of the computer is as sometimes when it shuts off it doesn't feel that warm on the bottom.
Also, I am reading on some models that the memory is soldered onto the motherboard and can't be replaced. Is this the case with a mid 2014 model?
Finally, let me know what other info you need
Thanks.