Components displaying wrong until clicked while in design mode

I’m getting this recurring problem where components don’t display as they should.
As an example, in the image, all the headings are meant to be centered like the top one. All the settings are so yet they display to one side. If I click on them they suddenly start displaying as they should.
This is getting really frustrating as it is a constant game of whack’a’mole and I never know if there’s something that needs fixing or just Figma being annoying.

As it happens, this problem is also visible when viewing a prototype. Even after fixing the issue in design mode by clicking on the culprits.

Ok, this is actually REALLY BAD. I’m getting similar issues all over my document which was fine up to this point. Suddenly components all over the document are displaying wrong for no apparent reason, clicking on them fixes the problem but this is hardly a fix as I first have to go fishing and then I have to trust that they will stay as they should!

I went through my document clicking everything to fix it.
Closed Figma, reopened and all the issues reappear. I need to fix this urgently!