Good question… I was checking nextcloud’s code and saw this error does not check db, but it was because of garbage on data-dir folder. Not that I removed it, the error changed to:
“The username is already being used”
Then I had to cleanup nextcloudb and errors disappeared.