Hi,
First of all, if you don't already have one, I recommend using a dedicated service account as the owner of the flow.
Then you can give it site collection administrator for each site or SharePoint administrator to allow it to manage any site.
I personally always use a service account with SharePoint administrator privileges for my flows. So I can do what ever I want over SharePoint, Teams and OneDrive with that account. This is not a security breach since this account is only used for that and credentials are only known by couple of administrators.
______________________________________________________________
If I have answered your question, please Accept the post as solution.
If you like my response, please Thumbs Up.