Hi Thank you for your question to HCM. Commonest spine related reason for back and leg pain is degenerative changes in the spine which lead to compression of the nerves. Pain of degenerative spine is related more to activity and is called mechanical pain. Muscle spasms during sleep are not uncommon in degenerative spinal conditions however when pain increases at night during sleep other cause of back pain like inflammatory disorders and tumors need to be ruled out. For your symptoms I would suggest complete neurological evaluation by a physician and MRI of the lumbar spine which will show the cause of pain clearly. Treatment for degenerative back pain is 1 Analgesic medications like ibuprofen, meloxicam, tramadol etc 2 Nerve pain specific medications like pregabalin or gabapentin 3 Muscle relaxants like tizanidine 4 Local heat 5 Back brace Hope this is helpful. I would be happy to answer any questions you may have.