When the multiple permissions are created to a file and a folder in the loop, there is the case such error occurs. So although I'm not sure whether this is the direct solution because I'm not sure about the detail of your situation, for example, how about using "Utilities.sleep()" and/or the batch request?
2020年7月2日木曜日 14:54:21 UTC+9 JMR: