I don’t know what to do

hi everyone. So I just passed out from how painful my period is, got cold sweats and threw up a lot. This isn’t the first time this has happened. It’s happened about 4 times since I was 13. I’m 17 now and it’s still happening!! It’s so painful. Does anyone know how to stop this?