Stomach pain

I started spin class a few months ago. Love it. But have noticed last few times in class that my stomach starts to hurt. Any thoughts as to why this would start happening?