In many strategies, the number of bars in trade at the end of the IS period is negative.
This affects the entire "Bars in Trade" evaluation.
It is also unusual for a trade to be open for 3314 days.
(I could not find any connection to the configured time period for the generation / strategy development).
Sure, you could limit the number of "Ranking" trades you generate. The selection is only for "AVG Bars in Trade". According to my assumption, the number is also calculated with an average over the entire test period (IS / OOS) and would not prevent the negative result, which is not a fixed value but an average.
Here is a screen and a strategy as an example