For those using Docker Desktop and experiencing the same error, I followed this solution of uninstalling the local Postgres on my machine, and it worked perfectly.