Getting ERROR_RESOURCE_EXHAUSTED working on my project