After some more research, it seems that the problem ist the Ktor development mode which I set in my main method with System.setProperty("io.ktor.development", "true")
Sorry, was not visible in my initial question.
When I set this mode to false, the problem disappear.
Here is a similar problem description.