fridgefreezer making a clicking noise

hi i’m needing some advice on my fridgefreezer it has started to make a clicking sound and when itdoes this the light inside the fridge goes off and the fridge goes warm.

if i turn it off for a little while it will come back on and you can hear the fridgefreezer working again but after a couple of hours it happens again.is there anything i can do to fix it myself to save some money.