Not worried at all. (although I get it)
I own sheep.
The only time there would even be the potential of a concern is if the sheep who pooped happened to be (a) pregnant (b) had toxoplasmosis AND (c) was currently sick from it (90 percent of the time that sheep have it... which isn't always... they aren't actually SICK from it which means it wouldn't be live bacteria in their feces. Sheep always have certain bacteria loads, so even "having it" doesn't mean it's bad)
I understand the thought. I do. Since I'm pregnant I try not to be the one cleaning out the sheep huts outside and I try to minimize my time with my two pregnant ewes. But a lot of things have to line up for there to even be a concern at all.
The fact that it wasn't wet also means you're all good! Healthy sheep basically poop pellets. It can still smear, so it can still get on stuff, and it can still be sticky. But if it's not wet that also means the sheep was probably healthy.