Miscarriage????

This came out after 5 days of awful cramps and spotting... on the pill (started Jan 1) I don’t know if this is a miscarriage or something else but it’s as long as my pink and it’s hard not gel like. I haven’t taken a pregnancy test and I thought I was having a light period on the pill until this nightmare came out. Help what is this