based on your description, the sharp pain, swelling in the gums, and the presence of white pimples/bumps could indicate an infection or an abscess in the area.
It's important to consult with a dentist as soon as possible to address the issue. They will be able to examine your mouth, review the X-ray if provided, and determine the appropriate next steps. Treatment may involve a thorough dental cleaning, antibiotic medication, or a root canal procedure, depending on the extent of the infection.
After looking at your xrays your third molars appear impacted and some part of them is embedded in the bone. You might be suffering from pericoronitis and in your case i would suggest extraction of the third molars .
Next Steps
I recommend reaching out to a dentist near you and explaining your symptoms to schedule an appointment. They will be able to provide you with a proper diagnosis and recommend the most suitable treatment plan for your specific situation.