Nips burning

Me and my friend were I the ocean and all of a sudden my nipples started burning idk if it wa any bathing suit or the water we were in a different area by our usual ocean what can we do to prevent this if it's the bathing suit or the water ??