MochaAE which is included in After Effects might be worth a try. It’s a planar tracker and generally performs better (in my opinion) with these kind of things. AE also includes a camera tracker which recreates a 3D camera – although often the results are difficult to work with. There’s also the original motion tracking that can capture scaling.
Sometimes you just can’t get a good track. Depending on the shot and the length of it, you could at a pinch, take a still frame of the shot and split it into background and foreground layers, position them within 3D space and use an AE camera. There’s lots of work needed to add subtle movement and grain etc…, but sometimes this is still easier than trying to fix a wobbly track.