Clot or miscarriage

Can you please give me some insight into what this is before I drive myself insane. I'm on the mercillon pill for nearly the last 2 years but I am not sure when my last period was. I was getting strong period like cramping and then this came out of me I'm not sure if I was pregnant