Hello. Welcome to hcm.
It appears that you have sprained your ligaments which has caused blood to accumulate. There can also be a associated fracture
I advice you to visit ER and get x ray
done. If no fracture is seen and joint normal,then you need to apply crepe bandage for 4-6 weeks and take rest. Repeated trauma is dangerous for ligament as will become weak.
All the best