AJAX wp_insert_user WORKS but responds with “The site is not enabled”

I decided to turn off every plugin and it turns out there was some code that had a user_register action registered to a plugin event which fired whenever a user was created, and as this code required specific data it was failing.

I disabled this action and my code is now working.