Hi, Thanks for using HCM.
Sudden swelling with severe pain
could be due to DVT( deep vein thrombosis
) . which needs immediate treatment.
Or could be a cellulitis
, that means superficial infection on tissue beneath your skin.
Consult your doctor for examination and management.
Hope I answered your question. Feel free to ask me if you have any further queries.
Wish you good health. Take