In order to change your username, open the Account and Locale page on GOG.com, or go to "Account and Locale" via "Account management" in GOG Galaxy 2.0. From there you select the "Change" button next to your username.
Note: A username can be up to 18 characters long, and may only contain letters, numbers, dots (.), dashes (-) and underscores (_).