Could you please share a screenshot of the configuration of your flow?
Please check if your network status isn't normal when the flow run failed with timed out error.
Please make a test again and make sure if your network status is normal to see if the issue still exists.
Thank you for posting on the Flow Community Forum! It appears as though @v-yuazh-msft would like some more information in order to further assist you properly with your issue. Please share any additional information that was requested in order to decrease the amount of time that it will take for you to be assisted!
Thank you for being an active member of the Flow Community!
Flow Community Manager
I had stumbled upon the same and I found - https://docs.microsoft.com/en-us/data-integration/gateway/service-gateway-onprem#considerations
If this reply has answered your question or solved your issue, please mark this question as answered. Answered questions helps users in the future who may have the same issue or question quickly find a resolution via search. If you liked my response, please consider giving it a thumbs up. THANKS!