The EXPORT SCHEMA command puts shared locks on all tables. Only then can the export start.If the creation of shared locks for one or more tables fails, the EXPORT SHEMA command terminates with an error.
Ensure that shared locks can be set on all tables. Then repeat the EXPORT SCHEMA command.