I struggled with this for 2 days and finally figured out the issue.
If you run the `file` command on this file, you will probably get the following result: ASCII text.
In our case, the library was pushed to version control. But due to the binary being quite large, it was stored using git LFS. Pulling these files using `git lfs fetch` and `git lfs pull` resolved the issue.