i work around all of them pretty frequently and do not get stung too often considering the chances via numbers in proximity.
often getting stung means you've gotten too close to a nest somehow. if you observe bees/etc being aggressive it is probably due to that. back off if you can immediately.
however once they've stung you or attacked you then you are likely scent marked and that may signal other bees to join in. changing clothes and washing well can help, but if you wear certain perfumes or similar clothes they may still come after you. give them space and time and they may reset their behavior towards you.
certain bees however, ugh. i've had to put on protective clothing because i needed to get work done and could not be out there with bees getting in between my eyes and my glasses. even if the stings were not super painful and i am not reacting to them it still just sucks when that happens. and it is usually the ground nesting bees that are the worst for that. keeping the ground watered and disturbed does discourage them from nesting in the gardens but with as many gardens as we have i can never keep all of them discouraged. sometimes it does come down to me having to smack them for attacking me - which is the worst thing to do to any bee as it escalates everything.
avoiding having loose clothes that might trap bees in them is the other way i'm most likely to get stung. hanging open clothes are ok as long as you don't smush the bees that happen to wander in by accident.
as it goes though, i work along side many bees most of the garden seasons without them coming after me - thousand and thousands of them.