What is the cause of error P0131/p0151 when @ full throttle? on 1998 Chevrolet 1500 Pickup

Only happens when it is at full throttle and that is when the light comes on and error codes display.. also I can feel the motor bog down. I can make it do this at will. I recently did changed the fuel filter and via other research I saw some things in regard to fuel pressure? Does that mean the fuel pump is going to go out soon?

Asked by for the 1998 Chevrolet 1500 Pickup