Nope. This happens because it's a frequently used technique in the real NBA, intentionally fouling to stop the clock and put an opponent on the free throw line. Unfortunately the CPU isn't always very smart about using the intentional foul strategy but there's no way to disable it or modify the intentional foul logic.
Sometimes that gets called as it should but other times the game lets you or the CPU players get away with it. In a way it's realistic; glitchy as it may be, it unintentionally represents the NBA's approach to calling travels.