Cramps inserting tampon

My period is gonna end in around 2 days but I was light today so I put on a liner but surprise my period tricked me and I kept bleeding more enough to need a tampon so I just put one in and suddenly have bad cramping and that has never happened before. Idk if it was just a coincidence of the timing? But last night I had sharp pains that felt like it was near the uterus and this morning when I took out my tampon i had the sharp pain and I went to put a new one in but I had the pain so I decided I was light enough to only wear a liner but it got heavier throughout the day. I don’t know if these two things are related or what. Also I’ve never had kids I’m 19. Has anyone experienced this before or know what it sounds like or is it probably just nothing?