Help please

So I been bleeding about 8 days with what I thought was my period but it was not heavy as normal but today when I went to the bathroom a huge blood clot about the size of a huge gum ball came out so idk if that was a miscarriage or what do I need to go to the hospital to find out what’s going on