Since you mentioned that this is only happening on certain environments then a possible cause could be that those servers do not have the proper PHP extensions installed to handle parsing XML.
Here’s a great Stack Exchange answer that outlines most (if not all) of the required extensions.
Specifically, I would confirm whether or not SimpleXML and XML Parser are installed and functioning properly. Maybe use a phpinfo plugin to check that quickly.