[api] improve error message for invalid release project kind definitions