I am using an arcade script to calculate and format a popup in a map which calculates the area of a department across various regions (on the same level, facility, site, district) and also lists the other facilities that have units with that same department. So when you select a unit, it gives information on that unit, including the department it is allocated to, and then gives some square footage stats related to that department. The pop up works great when looking at it in Pro and in a web map, however when I use that web map in ExB, it does not always calculate the area correctly or list all the other related facilities. Because it works as expected in Pro and web maps (and for some units while in ExB) I'm fairly confident my script is fine, but I'm wondering if there is some issue with how Arcade works inside ExB? I tried to use WebApp Builder just to see, and the pop ups do not render anything at all. I have gotten the same results across multiple devices, in Chrome and Edge but I have not tried other browsers yet.
Here is how a pop up renders (correctly) in a Web Map:

And the same feature in ExB (incorrect):

Another example of a different error, in Web Map (correct):

And the same feature in ExB (incorrect):

If anyone has any ideas on what could be happening, I'd love to hear it.