The only thing that makes it worth it is that the problem domains are so much more interesting than anything you're likely to run into in industry.
Now yes, I am struggling with Information Assurance people and their cantankerousness, but I also have the unique pleasure of being the primary data scientist on this very large project, which is exposing me to new things every day. I just haven't had an environment for learning this rich before.