Could be loads of things, probably best to get it plugged in to find the error.
When the EPC light comes on the car will probably go into limp mode, so that is why it will feel sluggish.
My other half’s Seat Leon did something similar and it was a Turbo Actuator fault.
Cheers
Chris