You could try warp stabilizer vfx. Apply the effect to the main footage. After it processes, in the Effects control panel go to advanced/result/target layer over original. On target layer point it to your mask layer. You would turn the eye off on your mask layer in the timeline. If the mask has shifted you can use the blue numbers on positioning to tweak the position. Again, this depends if Warp Stabilizer is able to process the clip but it is an easy option.
... View more