Returns the closest selectable YearMonth for yearMonth.
if yearItems or monthItems are empty, contain duplicates, or contain values outside their supported ranges.
Returns the closest selectable YearMonth for year and month.
if year or month is outside the supported range, or if the configured item lists are invalid.