Primary issues which turns the check engine light on are-
1. Clutch malfunction
2. Gear malfunction
3. Engine overheating
Now engine overheating also caused by
a. Low coolant level
b. Wrong inputs going to the fuel injector.
c. Excess carbon emission (if you ignore this, it will damage your catalytic converter)