It’s most probably because this face is an n-gon. A face with more than four corners. And then the algorithm is in trouble to divide it sometimes.
What you search to flip a face is most probably recalculate normals.
Attachments:
This is my signature. You can change your signature in the profile