In a close game, teams foul on purpose towards the end of the game to try and catch up. This means that one team only uses about 1 second of the game clock and then gets to shoot free throws, resulting in high points per minute. If the other team than quickly hits a 3 in attempt to close the game, you get even more points in a short timespan.
I hope this helps you understand this is not a bug.