Report per category raise integer out of range
The pairing in reporting per category generates id out of the range of integer. PostgreSQL integer are maximal is 2³¹. This is because the pairing is using the square of the line id which can be big on large database. Indeed once you have more than 46340 sale lines.