Try this –
Plug in the switch so that you have the battery icon in the top left indicating that it is “charging”.
Hold down the sleep button until it shuts down (12-15 seconds)
Walk away for a while. Leave it plugged in. Don’t unplug it and plug it back in as that will wake it up. Just leave it off and plugged in.
Try powering it on after about 10-20 minutes.
You can also look here for the same issue with the Switch charging – https://en-americas-support.nintendo.com/app/social/questions/detail/qid/49177/~/switch-wont-charge/session/L3F2LzEvdGltZS8xNTA2OTgzMzE3L3NpZC9mVWxseFVBZ2klN0VwS3BhY3dhdmJtalVUS0RzQzRaN1pHaHFPbm1rTmVVQXc4U0FsaUVjZm1tcl92VG1xNncxcEJPbDdSM3lWMHQlN0V4STJRdWhybUJCTWs5enI2UkV0T3J4eUJWQVpKaVZJck1hU0wycnBXaGdSN3V3JTIxJTIx/comment/8153