Whenever I try to optimize a parameter with more than 1000 possible values I get the same error at the 1000th parameter:

"wrong number or range"

does someone know why is this? I´ve tried to optimize 1000 each time and all the possible values works, only failing when the range is higher than 1000.

Also, is there any way to do hyper parameter optimization?
And also, mixing more than 1 parameter. From what I´ve seen if more than 1 parameters, they´re optimized individually, but never all the possible combinations.