.h5 File not delivering Correct JSON file

When using from_pretrained to create a model from the .h5 file I’m getting an incorrect JSON file. I tried to create the config file and just load_weights but the arch I’m using, TFBertForClassificationSequence, doesn’t allow it. How do I jump this wall?