MacBook Air mid-2015 (A1466) shutting down randomly and when unplugged
We have a 2015 MacBook Air (model A1466) that in the past year has begun shutting down any time it's unplugged regardless of the battery level and sometimes randomly when it's plugged in. We have tried to install a new hard drive, did a PMC and PRAM reset, and all the other things people have suggested. See this thread - same problem no resolution - https://discussions.apple.com/thread/252179449.
I took out the battery and hard drive, installed a new hard drive, replaced the battery, and the problem persists. Apple's response to the above-mentioned thread was "here's how optimize battery life" and "did your Mac restart because of a problem". Clearly support people either don't monitor these or don't read but we'd love to know if anyone else had this problem and has figured out a solution besides throwing out the computer.