Hello , your pain is mainly because of the tooth adjacent to the wisdom tooth u are getting removed , your dentist must have told you that wisdom tooth impaction or food lodgement has caused cavity in the adjacent tooth .
Your symptoms are typically suggest irreversible pulpitis and the treatment is RCT
Ask your dentist to schedule an early appointment , get RCT started and you will be fine
Next Steps
If you want medication you can take Practo online consultation from me , and I will give medication
Health Tips
Take medication , get treatment for both last and second last teeth
If pain increases while lying down , lie down in semi reclining position , pain will reduce
All the best