Fix: libcrmcommon: bounds-check when adding to years
Also, assert on invalid argument, and add unit tests
Fixes https://issues.oss-fuzz.com/issues/370032362