The default buffer size in the new Windows terminal (https://github.com/microsoft/terminal) is too small and quickly gets full when reading a large file. I could not find a way to increase it.
In the old Windows terminal, one could change the buffer size using the method described in this answer: Windows Command Prompt: How do I increase my buffer?