429 too many requests on bulk user updates with js sdk

Just noticed that the platform client userApi is throwing 429s when i run a bulk update script in next.js server actions.

const batch = await platformClient.UserApi.postUsers({body: users});

im hitting the rate limit within seconds even though im not doing concurrent requests. how do i implement a proper exponential backoff in the middleware or should i use a custom http client with retry logic instead of the sdk?