Though I didn't understand why it failed when exporting from the large file, but not when moving the relevant subtrees (where the #+include was called, and the included) to a separate file..
I am just including content from one subtree to another in the same file.. What that the corner/pathological case?[1]. Sorry, I didn't quite understand the test in the commit.