dbt build completes successfully but dbt run fails

The problem I’m having

When I run dbt run command I see the below error. But the run is successful when I run the models with tags or when I run dbt build command

Some example code or error messages

Runtime Error
  Database error while listing schemas in database "database_name"
  Database Error
    250001: Could not connect to Snowflake backend after 1 attempt(s).Aborting