Pain during dental treatment could be because of
1. Underlying infection which takes time to heal.
2. Hidden decay, compromised gum health, poor oral hygiene
3. Wisdom tooth eruption which gives you radiating pain around the ear or lower neck region sometimes.
To give you more precisely suggestions, radiographs of the area where you complain of pain will be required.
Next Steps
please tell your dentist to have a thorough examination of your symptoms and oral cavity followed by radiographs if required.
Health Tips
unable to sleep at night surely indicates the severity of your dental condition. do not delay any treatment for the required condition you are having. you can share your dental records here by online consultation to guide you in more better way.
take care