Switch is making a loud beeping noise when I turn it on

When I turn on the switch, there’s a very loud, high pitch beep as the device is turning on. I swapped out the fan thinking it was that, but its still on going. Also, the screen kind flickers, or from the Nintendo logo, it’ll go black screen. I have no clue what to do now. If someone can suggest what to do next, I greatly appreciate it.