Does it hurt to bend both forward and backward? Try to avoid any extreme spinal flexion or extension or any at all.
Spend time stretching the psoas, quads, hamstrings, glutes, piriformis, etc. Also do some foam rolling on those areas as well.
What you could also do is hang from a pullup bar, you may be able to find some relief doing that. It helps me at times.