I get the same error:
[✗] Unable to build gravity tree in /etc/pihole/gravity_temp.db
Error: database or disk is full
Adding more lists makes the database larger, having fewer makes it smaller. There are no limits for anything defined in Pi-hole.
This can't be true. If I remove some blocking lists, I can build the database, if I add another list, I will get the error again.