Hi,
Your test script looks good. I am guessing here but is it possible that there is custom logic (either javascript or microflow) that does not allow setting certain values for display name and internal name.
The validation messages seems to imply as much “blank (white) spaces are not allowed”
If you do this manually does it work?
-Andrej