This is a short story I recall reading somewhere about an unmanned ship's computer.
The story begins with a computer's component receiving an unusual signal, but the computer doesn't understand why it is unusual. By attempting to understand the reason for its confusion, gradually it realizes that its core is badly damaged. It attempts to send a drone to install the only remaining replacement core, but the drone and the core hurtles through a hole in the side of the ship, which the computer failed to notice as well (due to the damage). The computer is now stranded drifting through space, with the realization that it is irrevocably damaged and cannot repair itself.