Here's my experience with dog poop:
- Chestnuts - no issue at all. I don't think the dogs like the spiny chestnut husks so they pretty much stay away while the nuts are dropping.
- Walnuts - Just a minor issue. People seem to be pretty good about picking up after their dogs.
Needless to say, I wash everything really well

But all the nuts are in a shell which is often also inside a husk so I'm not worried about contamination.
I wonder too if the trees like the "nutrients" provides by the dogs. I suspect that they do.