Warning message: invalid value for parameter "default_tablespace" in postgres
It seems you're confusing schemas and tablespaces. A schema defines a namespace whereas a tablespace points to a path on disk where data files are stored.
SET default_tablespace = name refers to a tablespace that would have been created with CREATE TABLESPACE.
A default schema can be assigned to a user through search_path, see Schemas in the documentation.