Found the issue to your problem and have made a fix for it, the problem was as follows:
-Your code is 100% correct, but the website you're on has a lot of very horrible selectors, namely the pager selector, it is not changing state when its clicked or reaches the end, i.e. the only thing that changes is its colour and I think hyperlink state? either way, its impossible for PAD at the moment to spot this, I tried all sorts of selectors for this, I'm sure there's someone out there that knows better than me on this topic. If the pager element either disappeared or changed state this issue wouldn't occur.
As for the fix, please email me at ploktionov@automationoutcomes.co.uk I'll send you over a text file with the automation, (Now attached to this post, as I now can put zip files in messages) in there copy-paste the text into your PAD automation, literally just CTRL+V the text from the .txt file anywhere in your Main flow and it should paste the work-around that I've devised for you which looks something like this:

2023 September Pavel here - for anyone else who stumbles upon this, note that this wont be a solution to your specific problem, but the old code can still help in understanding, so I've attached it to this post now (and I've been asked for this code quite a few times now, so might as well!). Note, it will throw some errors due to the difference in versions from back then and now, but can be easily resolved by replacing the UI Elements. Feel free to email me / message me if you need help with your problem similar to this, I'll help when I can.