Dealing with injury and/or pain is just part of the Ashtanga practice.
Or is it?
The divide between those who think pain is inevitable and those who think pain should be avoided is one of Ashtanga’s Great Divides. (We’ll let you imagine others.) Here’s a variety of ruminations on the topic — most with lots of comments.