I am getting the same error 1401.
Does it give the error if you choose dates that result in very few records? --NO (output is displayed for few records)

For more records? --YES (output not displayed resulting in error 1401