If you struggle to maintain good form during an exercise, drop back to an easier variation of the exercise to build those stabilizing muscles necessary for good form.
Exercise is considered the most effective, non-drug treatment for reducing pain and improving movement in people with arthritis. [arthritis.org]