Kia optima flickering headlights

When this is happening, ask your mechanic to measure the voltage at the battery, both on the battery, and on the connectors which connect to the battery. I expect you have either a bad battery, alternator, power connections, or ground connections. A faulty ignition switch, main relay, fuse, or wire splice is also possible.