first time asking a question here.
I\'ve built a Google App Script that takes event info from Google Sheets and creates events on Google Calendar, based on @Mogsdad
Had a similar problem with a script that creates calendar event blocks on week-days, only using nested while-loops. I inserted Utilities.sleep(3000) so that the script would pause after every 10 iterations. I tested it for a 20 week period creating 20 events per week (400 events) and no error message. I'm going to play around with the timing of this to see whether I can reduce the sleep time. Here's the the Google Developer reference info:
https://developers.google.com/apps-script/reference/utilities/utilities#sleep(Integer)
I had the same error, and searching on Google let me here, so I'll leave my solution. In my case, I was added email reminders to events, which caused the "You have been creating or deleting too many calendars or calendar events in a short time. Please try again later." error after created only 10s of events. Removing the call to Event.addEmailReminder()
fixed my problem.