Possibilities that may need to be considered include bone contusion, muscular ligament injury, infections/ inflammations etc. Though pressure
on the nerve may be responsible for pain
, this would rarely cause localized swelling. I would suggest discussing the possibilities with your treating orthopedician. If a conclusive diagnosis is made, management can be initiated accordingly.
Hope this is helpful.