I believe you would have to make some modifications to the LOD formula when switching data sources.
I understand you can't share the data, but can you at least share the LOD formulas? The one that works and the one that produces the error. That could give me some clue on what could be going wrong.
Feel free to rename the fields and the data sources. All I need to understand is what fields are different and what data sources are different.