Hopefully someone here knows what I'm talking about and I didn't just make the whole thing up as part of a fever dream.
I recall reading a book several years ago where one of the main plot points was that there was some kind of AI watching and recording humanity across the galaxy, but had been doing it for so much longer than designed that it was starting to break down or run out of storage space or something of that nature. It influenced some guy to head out and start looking for it to help or fix it. I don't remember much else, and all of the search engines just spam me with garbage sponsored AI bait, so I'm hoping someone here might recognize the broad strokes and be able to point me in the right direction.
This sort of happens in The Foundation series. In the last book, Foundation and Earth, the main characters >!locate Daneel. Daneel is a robot who has been manipulating the course of history (for the better) but his brain has gotten too old and is no longer able to hold new memories.