Custom state is not working

I created 23 questionnaires using custom states and set up a workflow to navigate through them by pressing buttons. However, I encountered an error where it doesn’t proceed beyond the 8th page. How can I fix this?

Have you checked your issue using step-by-step debugger mode?

Yeah, but there weren’t any bugs. Just now, when I recreated the buttons, the navigation worked, but it stopped responding after a few more pages, just like before.