User sync stops after around 25 members and then error

User sync stops after around 25 members and then error. The sync was working properly up until about a week ago. I was using the previous version. I have tried updating to the new version but still have the same issue. Although the new version fixed the issue with transferring the proper roles. I have tried disabling all plugins that have updated or changed over the past month. I have run in debug mode and have logs.