This is a bug that is going to be fixed in the upcoming release (see https://forum.syncthing.net/t/unable-to-set-folder-id/17957).
The workaround is to add the folder first and then either use the Advanced Configuration or edit the config.xml
file and manually change the ID there.