[viki] Enhance error message handling (#3774)