If the pipe was going to fail, it is most likely to be at the point it passes under the foundation. If the local geology is stable it should be OK, but running directly under a foundation rather than passing directly under does add risk. A good test is, how long has it been under the foundations...