Numpy error on Google Cloud Functions which does not happen locally

Your execution environment is sandboxed and you can't get some CPU features (for more details, have a look to gVisor project).

To solve that, I can recommend you to switch to Cloud Run (simply wrap your code in a web server, see my old article here) and use execution runtime gen2 (still in preview)