Multiple scripts upserting simultaneously

I’ve got a script which upserts a bunch of vectors one by one to an index. This works fine when running on its own, inside a GCP cloud function. I’ve noticed that if I have this script running, and call it again via another instance, the original instance fails. Are there any limitations around upserting from multiple scripts simultaneously, on the same API key + index?