This codes relates to ECM activity in terms of correcting a rich or lean fuel mixture. Your particular code P1178 is: Maximum Positive AMFR correction fault. P1179 is the other end of the scale is Maximum Negative AMFR correction fault.
It would seem you would have to investigate the reason your fuel mixture is intermittently(?) beyond the correction abilities of your ECM.
