Period question

Every time I am on my period I get these huge lumps on my inner thighs and when i pop them puss and blood come out does any one know why I get them?