Error in downloading PackageFile by url


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:

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

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