I got it to work on MacOS with Zscaler by setting a node.js-specific environment variable:
export NODE_EXTRA_CA_CERTS=/path/to/ZscalerRootCA.pem /Applications/LM\ Studio.app/Contents/MacOS/LM\ Studio
using LM Studio Version 0.3.16