engine cuts out with ac running on 1998 Ford E-350

Just drove from Denver to Tucson and had to drive w/o the ac because when it was on, the engine kept cutting out at random times while on the freeway. When the ac was off, there was no problem. The 'service engine soon' light is on, but was wondering if this might be simply answered? Thanks.

Asked by for the 1998 Ford E-350
There's rarely a simple answer when the service engine soon light is on. The possible reasons are listed here:

A problem in your emission control system would explain your symptoms.