There isn’t really much you can do to stop it. Maybe do bed time a little earlier so she doesn’t get to that point of tiredness but it is just a temporary phase and will pass
I give my baby a muslin, and she clenches it sometimes moves it over her face.
My LO also does this and knocks her dummy out & then cries too. I haven’t found a fix & not advice but just to say I’m in solidarity with you on how tough it is when you ge them to sleep and then they wake themselves! Xx