@Anonymous
From the information you have shared I understand that you have an action using which you are trying to perform some action on the items that you are looping through.
Every action in power automate has the timeout settings which you can use to increase the time out duration.
Click on the three ellipses on the action card(...) and this will open a side menu with options such as Peek Code, Settings and connection details.
Click on settings and here you will be able to see different field settings and also the Timeout duration setting.

Here you can configure the TimeOut in ISO 8601 format suppose I want the action to timeout after 4 days if it has to keep running then I will do P4D(click on the link for more information related to ISO 8601 format)
The way time out works is that let us say you have configured time out for an action to be 1 day, then the max time the action will wait for processing is a day. Let us say the inputs that I have shared to the action are processed in 1 hour then it's fine. If the processing is taking more than a day then the flow will stop at 1 day and the action will timeout as I have configured the timeout to be only a day.
The default timeout in flow is set to be 7 minutes.
Try configuring the timeout in the action card and that will help you in processing all the records.
If the information shared helps you, please consider giving a thumbs up 👍 and mark solution as resolved.