The version of Java currently shipped by OpenJDK on Homebrew is 19, which causes a known issue with Nailgun:
It's possible to get a working kserver by explicitly passing JAVA_TOOL_OPTIONS='-Djava.security.manager=allow' at the command line, but we should look at fixing this somehow.