Hi, this issue is called Hip Dysplasia. I have the same with my Bullmastiff in a mild manner.
There is no proper cure for it but you can make the dog manageable and less painful by avoiding slippery surfaces. Frequent hydrotherapy sessions. And also walking across different terrains like slopes and debris and soft natural grounds so the dog maintains balance and pressure across all parts of the hip.