Samsung TV keeps turning on and off with a loud noise.

So basically when I turn my Samsung tv on it makes a loud noise that turns off and on then does that again for a while then it stops and leaves on and I'm like ok its fixed I guess so I connect my Nintendo switch to the tv because I really want to play on TV SCREEN not the little screen and when I connect my Nintendo to my Samsung TV my Samsung keeps turning off and on making a loud noise and it won't stop. Please

crwdns2934089:0crwdne2934089:0 crwdns2934093:0crwdne2934093:0

crwdns2934109:0crwdne2934109:0

crwdns2889612:0crwdne2889612:0 0
crwdns2934285:0crwdne2934285:0