I have a bit of the same error. At least the same message.
We have created a Docker Setup, where Kirby gets freshly pulled via composer with every deployment. To have persistent userserror, license and home files and folders, we run a composer-post-install to copy those mandatory files.
When I register Kirby locally to be able to copy the file /config/.licence the key “domain” won’t match my production environment.
Am I right to assume, that I can register Kirby only online (on the production server)?
Afterwards I should copy the resulting /config/.licence and save it for my composer-post-install php action: