Frequent Exceptions for histricalTrades

I am getting as exception calling histricalTrades in approximately 70% of all requests.
Can someone tell me what exception message may mean?

request exampe:
GET https://fapi.binance.com/fapi/v1/historicalTrades?symbol=YFIUSDT&limit=1000&fromId=138556629

responce:
code: 400
headers:
content-type: application/json
content-length: 35
date: Fri, 25 Mar 2022 14:13:19 GMT
server: Tengine
x-mbx-used-weight-1m: 40
x-response-time: 2906ms
access-control-allow-origin: *
access-control-allow-methods: GET, POST, PUT, DELETE, OPTIONS
x-cache: Error from cloudfront
via: 1.1 163be08bc1bc44818353c4fd88655bee.cloudfront.net (CloudFront)
x-amz-cf-pop: FRA6-C1
x-amz-cf-id: saKmRbHVU5_ckEbNKBaxFDUST6PaRFY4LBCnd6HQX2My_LDBq93YLQ==

body: {
“error” : “Internal error: 1”
}

Is it still happening?

yes

I have exact same issue with futures API for fetching market data, spot API works without any problem

same