Internal Server Error on first launch - lastval() issue?

I’m trying to get Nextcloud running with CockroachDB instead of Postgresql. Cockroach is largely postegres compatible. I’m finding that upon the initial run (docker compose up) I get the opening page where I set the admin user and password. But then it just spins for a long time and finally results in an Internal Server Error.

From the Nextcloud logs, the only error I see is

"File": "/var/www/html/3rdparty/doctrine/dbal/src/Driver/PDO/Exception.php",
        "Line": 26,
        "Previous": {
          "Exception": "PDOException",
          "Message": "SQLSTATE[55000]: Object not in prerequisite state: 7 ERROR:  lastval(): lastval is not yet defined in this session",
          "Code": "55000",
          "Trace": [
            {
              "file": "/var/www/html/3rdparty/doctrine/dbal/src/Driver/PDO/Connection.php",
              "line": 82,
              "function": "query",
              "class": "PDO",
              "type": "->",
              "args": [
                "SELECT lastval()"
              ]

Will this error result in an Internal Server Error? Or is some other problem occurring that is not being logged?

btw, I DO see tables created in the database during this initial setup so communication does appear to be working. (Cockroach has a nice dashboard)