MacBook Air randomly sleeps when plugged in. Any fix for this?
I'm not sure what's causing it, but my MacBook Air randomly and sometimes frequently goes to sleep only when plugged in. I'll go through periods where it won't do that at all (for months), and then periods when it will start acting up again.
I have tried resetting the SMC. There are no magnetic items near the "sweet spot" people mention, or anywhere near my laptop. My MagSafe is a little old and maybe faulty, but I've tried using multiple ones I have, but the problem persists. I'm not running many programs at once that could cause some sort of system overload.
Here are details for my MacBook Air:
MacBook Air (13-inch, Mid 2013)
Running on macOS Catalina 10.15.2
Last 4 digits of serial number: F5V7
20GB available space on HDD
MacBook Air