Getting error while loading model from local path : Exception: expected value at line 1 column 1

All the model files are of valid size. Interestingly creating a zip and unzipping it back is doing all the magic.If I simply do git clone <huggingface_model_uri> and then provide the local path while loading model it works.