I have used two different metal suppliers for buildings, Central States and Fabral. Just read their warranty information on both and neither state anything about voiding if spray foam is used. They have the same voidable clauses as I am sure most all the manufacturers do. 2" closed cell spray foam applied directly to all the Fabral panels on my building almost 8 years ago. Zero issues.
Central States warranty
Line 6 of the "This warranty DOES NOT APPLY in the event of" sub section.
"• Presence of damp insulation or other corrosive materials in contact with or close proximity to the panel."
Fabral Warranty
"4. To perforation of panels caused by (a) corrosive fumes or condensate of harmful substances generated or released inside the building, or (b) damp insulation or other materials in contact with or close to the roofing or siding panels."
R panels ridges are there not only to provide stiffness but also to provide ventilation behind the panel when oriented vertically. Also in standard pole construction fiberglass never touches the metal. Even if you install EPS or XPS between purlins there is a drainage plane and ventilation still there.
Spray foam if there is wind driven water or a leak under an exposed fastener(and there will be without a doubt) that water is held there. As it freezes and thaws it burst the cell wall of the foam and it absorbs more and more water, holding it against the metal never drying out. Ask anyone that has been around boats for any time and they will tell you about saturated floatation spray foam adding 100's of pounds to a boat.
As for the 8 years, sounds about right. My coworker is sort of a nut for radiant heat and we talked about building construction quite often and he was an ardent supporter of spray foam just like you. We had several debates about it and several years (12 yr old building) later he sheepishly came and told me about the whole corner being damaged requiring metal, wood, and post replacement. Should we blame the spray foam??? Definitely its a water intrusion issue caused by leaks. Problem is there is not such thing as a long term leak free exposed fastener building. Every pole building I have been in with any age has cracked washers and seeps here and there. They are inconsequential for the most part as there is ventilation to dry it out quickly but its still there.