Hi @Aase Nomad
When the user sends too many requests within a given time or get throttled in SharePoint Online, maybe cause this error:
It is recommended that you can change the filter condition to reduce the sites to retieve in one query. You can divide one query to servral query to excute and add “pause” between requests also helps to reduce throttled
Here is the reference document link:Avoid getting throttled or blocked in SharePoint Online | Microsoft Docs
If the answer is helpful, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".
Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.