I don't think it's losing power - it's starving for gas.Check the kickstand safety switch as well. If the kickstand is a little loose and/or the switch is failing, it will cut the ignition.
No flickering of any lights - bike is completely on. I just found out today that the fuel pump was never changed. I believe the bike has the original pump. I called the shop where the person who sold the bike to me said he went to. They have no records of installing a fuel pump.That is odd. Usually if the airbox is moded amd too much air gets in, it will bog down. If the fuel pump relay is bad, it may be gravity feeding and not enough fuel is pumping in so sudden throttle may cause it to starve.
Also, check the three yellow wires going from the Stator/rectifier as on the 02 shadow, the wireing harness is k own to melt from resistance and cause it to lose power. Lights will flicker and dim and gail once all three melt and corrode apart. This is under the seat and easy to find if you follow the rectifier wires to the harness clip. It will dry, crack and melt there.