Chub rub bumps

A
So I went to the beach and when my thighs were rubbing it started to hurt and now I have these. How do I get rid of them pls and what are these ? thank you 💗