I often get asked "what exercise should I to do fix this?". The honest answer is there is never just one exercise to help you get out of your pain.
Understand that you have overloaded a joint for a long time before it started to hurt. Reorganizing your movement strategies will take more than just one exercise.
Start by stopping painful movements and getting assessed by a trusted practitioner.