In my case, this issue was coming because of a mismatch in the Python version used to create the layer vs the Python version used to run Lambda. I downgraded the Python version of the Lambda run time to match one I used during the creation of the layer zip file. Everything worked fine.