Extra pagination pages being wrongly generated

It turned out these erroneous links were generated by Facebook Feed WD plugin.

Searching the code for phrases such as page_number_0 didn’t turn up any results, as the code in question was imported from outside the server, and switching to the default theme gave a red herring because it hid the widget and fixed the issue, leading me to believe it was a theme issue instead of a plugin one.