his is a picture of the socket my light relay plugs into...


This is a picture of the underside of the same socket...


The yellow wire with the red stripe goes to the fog lights. No surprise that the fog lights would go out when the relay heated up!