A "charger" is not a PSU and is not designed to supply a stable steady flow of power. This is fine when it comes to charging a mobile device, not when it comes to powering the PI. Get a dedicated hard-wired (not plug and USB cable combo) PSU, preferably an official Raspberry Pi one and say goodbye to the lightning bolt.