Is there enough space on the drive to which you are backing it up?
When we try to take backup using pgadmin 4, backup fails with "exit code 1". but restore of the same database works fine. This is strange, but this is what is happening, any one has any clue on this issue?