<s>[INST] I am only able to sleep about 5 to 6 hours and then awake with pain in my middle to upper back, no matter how much I switch side to side it is painfull, but when I get up after about 30 minutes I feel fine with no pain the rest of the day, then back to bed and same thing happens again [/INST] Hi, The symptoms are more likely to suggest the possibility of spine-related conditions like disc prolapse. As a first line management, you can take analgesics like Aceclofenac or Tramadol for pain relief. If symptoms persist you can consult an orthopedic and get evaluated. An MRI scan will be required for further assessment. Hope I have answered your query. Let me know if I can assist you further. Regards, Dr. Shinas Hussain, General & Family Physician </s>