We accidentaly returned an error when more than 500 headers were requested. The limit relevant to the Electrum protocol is 2016, and to match Fulcrum's behavior we don't return an error if we exceed it, we just cap the number of headers to 2016.
Depends on D18563