Engine light came on and car driving slow

I have a 2017 chevy malibu, i got it 2 years ago had 62,000 miles on it and now it has 100,000 I got the original battery replaced last year and it’s been running good until 2 months ago it started dropping battery when sitting at a light when the Eco mode comes on, I then have to press the gas slightly to juice it so it doesn’t drop power and so the eco will turn back off or at a long line I will put it in park so the eco wont turn on and drain the battery. then yesterday I was driving and it started driving slow dispite me pressing the gas the engine light turned on and i pulled over and turned the car off, I waited like 10 minutes then turned it back on and was able to drive it home without the engine light turning back on but it still felt bit sluggish when driving but not as slow as before. I have no clue what it means and can’t get the car in till monday