Auto-translated
This is a well-known bug. It's known in the 3rd (mostly) and 2nd Heroes games. The experience gain works normally up to 2^31-1, and then glitches start to occur due to the fact that there isn't enough space in the game for the experience value. But this is even less common in the 1st game than in the 2nd, because without skill trees, it's very difficult to level up a hero to that extent.
I know this, but I'm interested in the pattern of this bug, i.e., does the hero's level increase according to a specific rule, or does it act chaotically?
Have any such tests been conducted?
Added 2 minutes later
Today, I encountered a starting army for the Barbarian: 5 Orcs and 25 Goblins (I have a save file).
I previously wrote that the maximum number of Goblins can be 24.
Your save files with the maximum army for all races could be placed in this reference guide; so, if you have any, please upload them to the forum.
P.S. This note will be taken into account.
Sincerely, VDV_forever