Prevented the multiple error messages from appearing in a stack manner

Reviewer: Dan V (post commit)

Issue: GCP-9078