Here is a site with details about Gastroparesis
Gastroparesis Treatments, Gastroparesis Diagnosis, Gastroparesis Symptoms (I'm not suggesting you go to the US for treatment

, it was just the first decent site google found).
Erythromycin presumably is to be taken for an underlying condition, rather than for the gastroparesis itself?
I'm not wishing this on you, but Erthromycin can make you feel quite bloated and nauseous itself. If it happens, probably best to persevere than stop taking it, if its a short course.
Probably best to take it half an hour before meals.