Handle error on documents to big