Welcome to Healthcaremagic
This is the age of early menopause
(Stoppage of your period). Usually menopause is between age of 40-45 years. At this age due to imbalance in hormonal
level there is a degenerative changes in bone of back and neck. Such changed may have cause this symptoms. You better do x-ray of Spine. which may suggest possible reasons. Even the bad postures and job may have cause you such symptoms.
You can continue Yoga
under supervision of doctor, even some posture is prohibited in such type of pain.