It seems that this commit fixed it:
https://github.com/lichess-org/lila/commit/c4e53798d171ab71b...
https://github.com/lichess-org/lila/commit/c4e53798d171ab71b...
https://lichess.org/@/thibault/blog/lichess-on-scala3-help-n...
https://old.reddit.com/r/scala/comments/zh3o6x/lichess_runni...