Workaround that is working ok for me: Instead of creating Menu elements from “Pages”, instead use “Custom Links”. This did not generate the random numbers.
Out of curiosity – Is anyone else using the Yoast SEO premium plugin? I noticed that as soon as I added items to a menu, Yoast SEO said that I “deleted a post URL”. Maybe this is related to what’s happening??