I eventually got everything migrated. For the huge comment thread posts, I ended up splitting the export into single-day files. For normal or low-volume periods, I was able to split the months in half.
I still have the large file if you’re interested in looking at it or trying to see where the disconnect is (for testing purposes only, of course). I did notice that I was using the one from WordPress, not the one you’ve written; maybe yours would have been more straightforward. ??