Possibilities that may need to be considered are infections, inflammation, neurovascular damage, peri-prosthetic fracture, wearing of the bearings, loosening of the
prosthesis, ligamental/ tendon injuries/ inflammation, osteolysis, synovitis etc. It would be best to get this evaluated by your orthopedician to rule out the possibilities and appropriate management.
Hope this was useful.
Take care!