Which is the best strategy to handle a model crashing upon evaluation while optimizing input parameters?