Ah, got it. I’m not well versed enough with AMP infinite scroll to know why that wouldn’t work, unfortunately.
It looks like AMP is expecting an array for the pages but it’s getting an object.
It may be worth asking over on https://wordpress.stackexchange.com/ – if you link them to your site and show them the code you’re using, someone might know what needs to be tweaked.