I have never experienced gastric distress from S4 (or any sarm for that matter) but everyone is different. Try taking it with food. I suspect that will solve your problem.
Dose the S4 directly into your mouth, swallow, chase with water or juice and then sit down to eat a meal. Post another thread if that doesn't solve your problem and I'll try to think of a different suggestion to help.