Handle invalid and malformed build kwargs.