handling negative bound size

print the error message and exit the program if bound size is negative.