Hi thanks for using HCM.
This can be due to pleural injury
or musculoskeletal damage in right side of upper back. Just get examined by your doctor and you may need imaging to look for any internal damage. Do regular breathing exercises. Only examination will help us to diagnose you properly.
so don't delay and get examined by your doctor.
Hope this helps.