Have a second diagnostic check done with a different reader, when the light comes on it should record a fault. The engine probably reverts to
"limp home mode" this means the ECU has set parameters to get you home or to a garage, that is why it runs under powered when the light comes on...