(#21211) Raise a error on failed reading of cache

Instead of just debug logging this raise a error unless a default value
is supplied.