Help me!!

Hi guys I have had really bad cramps and nausea the past few weeks tonight I was woken up with severe cramps went to the toilet and passed this. What could this be??