I have this same issue in my pole barn AND
open covered run...
NO amount of ventilation will fix this issue. And I always mention when I see folks intending to use metal roofing.
Research some more before next year... I believe tar paper might be adequate without plywood. I will be doing the same thing in the coming seasons, as it was here when we bought the place. And screws that have gaskets should be placed on the hill not the valleys of the roofing. Definitely considering the foam sheets... as insulation WOULD stop the condensation... that is in my experience caused by a difference in indoor and outdoor temps... especially when the sun is coming up on cold mornings. My pole barn does this even with no animals in it.
Thanks for sharing!