uint256 public diffMaxMinRuntime;`` This variable is never set nor updated so it gets a default value of 0.diffMaxMinRuntime` with 0 value is making the calculations that use it either always return 0 (when multiplying) or fail (when dividing) when calculating bucket indexes or sizes.
Recommend setting the appropriate value for diffMaxMinRuntime and update it whenever min or max runtime variables change.
