Use ray.tune and ray.train.lightgbm, got error: ValueError: num_boost_round must be greater than 0. Got -40

i am using ray.tune to opt ray.train.lightgbm, but i always got the error:
ValueError: num_boost_round must be greater than 0. Got -40.
the value of num_boost_round in error is random,like 0, -40, -50, -90… but the num_boost_round shown in the log is normal.
at first, i add num_boost_round in the search space, then i remove it from the search space, but still got the error.
I want to know if this is a bug? Or is it a problem with my usage? Thank you!

Can you share your Train code as well as output?