Idk how to stop this from happening with my skin

Brooke

Okay so whenever it gets really hot outside and I’m in the sun getting hot this happens to my skin. I hate the bumps they’re embarrassing and go all over. Is there anyway I can stop this?? I want to go swimming but I don’t want to wear a bathing suit if my legs are going to look like this.