We had some Carpenter bees in an old trailer and they attacked my son when he was on the loader. He bailed off and left it running and still got stung around 10 times.
Then in the yard one day they attacked the dog and then started attacking us, 3 of us got multiple sting before we could get in the house. I’m not going to tell what happened to those bees.
Never heard of carpenter bees attacking anyone or anything. What you describe sounds more like yellowjackets, which often take up residence in old trailers and will aggressively defend their colony.
Carpenter bees - which are big and look like bumblebees - are solitary and do not colonize - except the mother and a handful of daughters may live fairly close. Males cannot sting, and the females rarely do unless you really go out of your way to provoke them, say by grabbing one and squeezing it.
We had carpenter bees all around in Illinois and Missouri, chewing holes in the beams of the barn or the deck to stuff with food, but never got stung.