ok, 2.18.0 fix my issue. Thanks!
You could use an uuid-v5 as id, using the post number, the map position in the post (0 for the first map in the post, 1 for the second and so on) and the map parameters.
In this way you’ll generate every time the same ID for the same map (in the same post, with same parameters) and they will be unique.
Also version 5.8.1 broke the site: the logic conditions don’t work.
I recovered the 5.7.4 from backup.