When settings have validation errors but cleanupPeriodDays is explicitly set, cleanup is now skipped with a clear warning message rather than potentially misbehaving.
Evidence
ww9() at line 540061 ("Skipping cleanup: settings have validation errors but cleanupPeriodDays was explicitly set")
Strings lifted out of the shipped bundle, so the claim above can be checked against them.