Most likely it is the delay relay for the fan, they go bad over time usually due to water and rust contamination and will run in the middle of the night for no reason and drain your battery. The relay is not needed, just disconnect it, it will be one less battery draining problem eliminated.