I have a Jekyll website that also uses paginate-v2. I was deploying it on GitHub pages, and it was working fine, until I added pagination.
You can get the code on https://github.com/divyessh/tennis-events/
And here is the last deployment without pagination:

Maybe github pages uses a custom ruby version. If you get that information, docker could help you to replicate the exact github pages infrastructure in your localhost.