How to resolve Error 600122, severity 11, state 1 was raised
They are generated in your code, try this to locate them

SELECT  *
FROM    sys.sql_modules SM
WHERE   [definition] LIKE '%600122%' or [definition] LIKE '%400006%'


Or this will also bring all custom error

SELECT  *
FROM    sys.sql_modules SM
WHERE   UPPER([definition]) LIKE '%RAISERROR%' or UPPER([definition]) LIKE '%THROW%'


https://docs.microsoft.com/en-us/sql/t-sql/language-elements/raiserror-transact-sql

Error numbers for user-defined error messages should be greater than 50000. When msg_id is not specified, RAISERROR raises an error message with an error number of 50000.