Error in downloading PackageFile by url

Hello,

When I want to download a PackageFile by its url returned by Github GraphQL api, it fails with this error:

Github failed with error: 400 Bad Request: [<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<Error><Code>InvalidArgument</Code><Message>Only one auth mechanism allowed; only the X-Amz-Algorithm query parameter, Signature query string parameter or the Au... (508 bytes)]

I am sending Authorization header with my bearer token. This is the url of the PackageFile:

https://pkg.githubusercontent.com/329910592/29baf900-5733-11eb-99d3-e53cda12bdb5?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=AKIAIWNJYAX4CSVEH53A%2F20210117%2Fus-east-1%2Fs3%2Faws4_request&X-Amz-Date=20210117T205433Z&X-Amz-Expires=300&X-Amz-Signature=8f7263d9d3bef912d657ce27f9a196a9e2f8580c6433baa30b4bdd4aa67308fc&X-Amz-SignedHeaders=host&actor_id=77451550&key_id=0&repo_id=0&response-content-disposition=filename%3Dnegotiation-lib-0.0.2-npm.tgz&response-content-type=application%2Foctet-streamstream

Also there’s another url for it in Github repository page when I open it by browser:

https://github-production-registry-package-file-4f11e5.s3.amazonaws.com/329910592/29baf900-5733-11eb-99d3-e53cda12bdb5?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=AKIAIWNJYAX4CSVEH53A%2F20210118%2Fus-east-1%2Fs3%2Faws4_request&X-Amz-Date=20210118T104030Z&X-Amz-Expires=300&X-Amz-Signature=6d13e5bad4e3f6213142b184f7a85d10d880426dc8d11fc195fdc75da52baf53&X-Amz-SignedHeaders=host&actor_id=0&key_id=0&repo_id=0&response-content-disposition=filename%3Dnegotiation-lib-0.0.2-npm.tgz&response-content-type=application%2Foctet-stream

What is the correct url to download a PackageFile and why is Github failing with the first url?

https://pkg.githubusercontent.com/329910592/29baf900-5733-11eb-99d3-e53cda12bdb5?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=AKIAIWNJYAX4CSVEH53A%2F20210117%2Fus-east-1%2Fs3%2Faws4_request&X-Amz-Date=20210117T205433Z&X-Amz-Expires=300&X-Amz-Signature=8f7263d9d3bef912d657ce27f9a196a9e2f8580c6433baa30b4bdd4aa67308fc&X-Amz-SignedHeaders=host&actor_id=77451550&key_id=0&repo_id=0&response-content-disposition=filename%3Dnegotiation-lib-0.0.2-npm.tgz&response-content-type=application%2Foctet-streamstream