Switch shuts off after Nintendo logo

I have a switch that when plugged in it shows the charging logo. When it turns on it shows the Nintendo logo for about 2 seconds and then shuts off. Any ideas???

check fuel gauge ic if damaged or been modded?

Had same problem two weeks ago after doing update it shut off and never restarted.When turned on it would show nintendo logo then shut off.I got mine to work again by taking it off dock and having usbc charger directly to switch overnight.Not exactly sure what the deal is there just know mine is back to working condition.