I dont think its a head gasket. It only boils and overflows when the car is running for a long time without the fan on. Im driving it now with a paper clip on the switch and it hasnt overheated once.

Btw, could a leak be the reason why the fan doesnt come on?