What could this be

I was having really bad stomach pain and then I got up to use the bathroom and when I wiped I saw this... any ideas my period isn’t due for a while