Wrong error handling BIG documents

Thank, you @davidbcn, I will fix this by limiting it on the client side.