Welcome to HCM.
In most cases, these noises are not indicative of any underlying problem.
If there is no pain associated with the annoying joint cracks or pops, you can assume it is being caused by the soft tissue
in a joint, and is not something to worry much about.
As you have mentioned it is associated with the swelling on doing some work, it needs to be evaluated as it is difficult to predict without examination. I advice you to see orthopedician for further examination and exact diagnosis.
Hope I have provided the information you needed.
Wish you good health. Take care.