You should not run this command as root and neither able to install bench without root getting permission error

“Now if use sudo with any command it gives me error”

Yes correct, bench commands should not be run with sudo.

For example it seems ‘sudo bench update’ can change file ownership that causes permission issues (that you possibly can fix with chown.)

See this thread Bench Update: Issues with permissions