Many thanks.
Sadly, I no longer have access to the conditions that caused the problem, because I needed to add new pages, so I started moving pages to become children. That immediately solved the problem.
Sadly, I had not selected debugging mode before fixing the problem or seeing this message.
I know the system can cope with thousands of pages, but I wonder whether there are sites with many parent pages?