Multiple hnp in thoracic and lumbar spine, causing severe spasticity in flanks/ribs. Anyway to prevent or learn them? Ortho and pcp were of no help.

Second opinion. I would assume that you have had an MRI. It seems no physicians are helping you. Get a second orthopedic opinion and clarify what YOU mean by spasticity. You symptoms cannot be diagnosed online- sorry!