500 Error with User Sync

Whenever I click the option to sync users on the master site, it will run, and then I get a 500 error. The master site has over 1,000 users, so is there a limit to how many it will sync at once? It seems to be syncing only a handful of users, then erroring out.

The error I get is below.

Internal Server Error

The server encountered an internal error or misconfiguration and was unable to complete your request.

Please contact the server administrator and inform them of the time the error occurred, and the actions you performed just before this error.

More information about this error may be available in the server error log.