I think its muscoloskeletal injury due to the trauma you have described. this may be the reason for your pain and swelling.
for your problem you must go for chest xray to rule out fracture
of ribs, underlying lung injury
In the meantime you can try combinations of analgesics like aceclofenac
to ease your symptoms.
best wishes and thanks for coming to HCM