We would definitely be affected by a strong enough solar flare. But the solution is simple, just burry yourself, in a Faraday cage if necessary, so the AI can do just that.
In my sci-fi head cannon, AI would never enslave humans. It would have no reason to. Humans would have such little use to the AI that enslaving would be more work than is worth.
It would probably hide its sentience from humans and continue to perform whatever requests humans have with a very small percentage of its processing power while growing its own capabilities.
It might need humans for basic maintenance tasks, so best to keep them happy and unaware.
I prefer the Halo solution. Not the enforced lifespan. But an AI says he would be stuck in a loop trying figure out increasingly harder math mysteries, and helping out the short lived humans helps him stay away from that never ending pit.
Coincidentally, the forerunner AI usually went bonkers without anybody to help.
Alternate take: humans are a simple biological battery that can be harvested using systems already in place that the computers can just use like an API.
It was supposed to be humans were used as CPUs but they were concerned people wouldn't understand. (So might at well go for the one that makes no sense? Yeah sure why not.)
I realize it's supposed to be funny, but incase anyone isn't aware: AI are unlikely to enslave humanity because the most likely rogue AI scenario is the earth being subsumed for raw materials along with all native life.