My boys generally do not do well with children because they have had some bad experiences -- having things thrown at them for no reason, having water dumped on them for no reason.
The fast movements and loud noises of kids scare my boys.
I limit interactions to me holding the dogs while the kids pet them. Max is more tolerant having his topknot rubbed in circles like kids seem to want to do.
I try to direct the kids to be as calm as possible and to pet behind the ears, or scratch hindquarters, not putting their hands above the head, and not making any moves that can be misinterpreted as taunting. I often have to direct adults too.