Hi,
error n.5 is CKR_GENERAL_ERROR.
It is raised by the underlying PKCS#11 module and usually it means that the token is in some invalid state such as not formatted or finished or something else.
You should refer to its documentations to know what cause that problem.