I've been trying to dodge this injury.
Like many injuries I think it comes back to FLEXIBILITY, STRENGTH.
Personally I make it a point to always do the scorpion and it's counterpart which I don't know the name, but you lie on your back with both shoulders kept on the mat then turn from your hips and stretch your core out.
I also think a large part of injuries occur from lack of a thorough warm up and dynamic flexibility. Most people know which areas of their body are subject to tightness and injury, so after your general warm up, do a specific warm up of trouble areas.