Hello, and good morning.
I always try and go about fixing or trouble shooting a problem with steps, starting with the cheapest and easiest way to get to the root of the solution.
You have possibly 3 different problems that can cause your description of the symptoms.
Number One, can be as simple as a fuel filter partially clogged, and if that is the case could in combination cause a vapor lock, cause by fuel filter being partially clogged. Solution on that is to replace fuel filter.
Number Two, can be fuel injectors are partially clogged, and can buy a can of injector cleaner at a place like Auto Zone, comes in a can, and has a hose, that you tap right into your intake of injectors, and as GMC is running, you spray this can through a hose and it goes through injectors and cleans the injector ports.
Number Three, and this one is more expensive, and have to have it put on computer to determine which one, sense there is normally 4. What i am talking about, what also cause this problem more often then not, is your 02 Sensor. And, that has to do with your air flow, Cadillac convertor,and other related issue that have to do with 02 Sensors.
I hope this gives you a area of where to start. I feel this will help solve the problem. Thanks Mike