thanks for your query at HCM.
it might be due to bend in spine called as scoliosis
that is why there is constant bending even at rest like lying on the bed.
Intially x ray
spine followed by ct scan
might be helpful in the diagnosing the problem.
My recommendation would be consult orthopedician for further above mentioned investigation and management.