I had the same issue twice. I had to remesh the part which was causing this issue and that is when I found out that there was a useless face extruded from an edge along with a floating face, all of which that didn't need to be there. It was solved
Another time I had used only tris for a small model, I made all the tris to quads, and that surprisingly solved flipping and overlapping issues for me.