'SVN checkout gives XML error behind proxy

I have a server with SVN running in apache2, it is behind an nginx proxy, and when I try to checkout a large repository, after about 1GB downloaded the SVN gives XML error:

"xml response contains invalid xml".

When I do "Clean up" and "Update" the download continues where it was left off, but ends up stopping again at other times.
I have to do "Clean Up" and "Update" several times until the checkout completes.
This error happens both at checkout via http and via https.
If I do the checkout directly, without going through the proxy, it goes to the end without showing any error, so I believe it is incorrect configuration. Can anyone give me a light? I have already tested many configurations, both in apache and in nginx.



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source