Mild discomfort between root canal appointments is not unusual, but severe stabbing pain that disturbs your sleep and does not respond adequately to prescribed painkillers requires further evaluation.
The fact that your treatment was painless during the procedure but becomes painful afterwards may indicate inflammation around the root, persistent infection or irritation of the surrounding tissues. Sometimes, even a slightly raised temporary filling can aggravate an already inflamed tooth.
This does not necessarily indicate incorrect treatment or a failed RCT. However, since your pain has increased after the second sitting rather than gradually improving, I would not recommend simply waiting for the treatment to finish.
Next Steps
Contact your treating dentist promptly and explain the change in pain intensity, its association with lying down and the limited effectiveness of painkillers. Your dentist should reassess the temporary filling, root canal condition and surrounding tissues before proceeding with the next sitting. If the cause remains unclear or symptoms persist despite corrective measures, seeking a second opinion from an endodontist would be reasonable.
Health Tips
Keep your head slightly elevated while resting and avoid putting pressure on the affected tooth. Do not increase the dosage of painkillers or start antibiotics on your own. If you develop facial swelling, fever or unbearable pain, seek urgent dental care. Difficulty swallowing or breathing requires immediate emergency attention. Successful root canal treatment is possible even after an interappointment flare-up, provided its cause is identified and managed appropriately.