I don't like anything that rewards the "bad" player too much, but maybe something like:
8th foul in 1 quarter = choice of 2 shots or possession (no shot clock reset)
Would allow teams to deal differently with end of game intentional fouls, not just hack-a-shaq scenarios. For example, if you are down by 3 and intentionally fouled with 5 seconds left, you could take the ball out of bounds and draw up a 3PT play instead of being obligated to shoot free throws. If you're in the bonus with e.g. 2 minutes left you know the other team can only hack-a-shaq a couple times at most.