My Macbook Pro 2012 intermittently freezes/lags, except when booted as an external drive
My 2012 13" MacBook Pro has held up very well for me for many years. I love the thing, I have fixed many errors and hardware issues, but now I am truly stumped.
The Problem: It boots up and works fine for about 5 minutes, then it begins to freeze/lag intermittently such that I can not activate any apps or click on anything, then 5 minutes later things will let up and it will work properly for 5 minutes. Lots of beachballing. This came on suddenly one day about a week ago. I am running Catalina with the latest updates.
I reset PRAM, SMC (soft and disconnected battery), ran First Aid on my MacOS disk, booted into Safe Mode, ran Sophos antivirus and Malwarebytes, ran Diagnostics, and restored my drive from the most recent working TimeMachine backup. Tested RAM slots and swapped out my 8GB modules. Always the same problem.
Then I decided to remove the SSD in question and boot to it as a external drive on another Mac -- voila, no problems! Does that mean my MacOS system is totally fine, and that there is some sort of hardware issue inside my computer?
So then I ran MemTest86 on my MacBook and it listed no errors.
I am very familiar with the SATA drive cable issues that this model has, and have quite successfully protected myself from bad data transfers in the past by putting an electrical tape barrier between the cable and the case. This behaviour seems like it might relate to poor data transfers, but in my experience that issue manifests in the gradual corruption of app data and the entire MacOS, rather than just an intermittent freezing issue. At any rate, I am waiting for a new SATA cable to come in the mail just in case.
I am about to run EtreCheck to see if any system files are causing issues.
Any other suggests for how to troubleshoot this further, given that the MacOS works just peachy when booted to as an external drive?
MacBook Pro 13″, macOS 10.15