Basically what happened is that I renamed the folder where my nextcloud docker-compose.yml is. Then I did docker-compose up -d which means that the postgres container created new volume since I did not use named volumes.
This wouldn't be so bad since the old volume was still there, just not attached to any container.
But then I run docker volume prune
Monumental stupidity
So now I have 40GBs of useless objects because the data necessary to rebuild files from objects are gone with the database