Switch OLED charges then stops

I have a Nintendo switch OLED I received from a friend that was completely dead and not charging. I’m trying to get it working for him for Christmas or else he doesn’t have a switch. I checked the usb-c port and was perfectly fine. I replaced M92T36 and started charging perfectly fine. Flipped over the charge cord to see if it charged both ways and it did up to 100%. I then connected a couple dead joycons I use for testing and plugged it back in to charge so that the switch itself wasn’t pulling from the battery to charge them. The battery had dropped down to about 83% and I noticed the switch was no longer charging.

After plugging it in a few different times I. Oticed it would randomly start charging for a little and then I would see if very quickly drop down to 5v and then stop charging. It will do this off and on and I’m at a loss as to what would cause this. Out of desperation, I’ve replaced the M92T36 again in case the first was faulty, replaced BQ24193 and p13usb.

check if the max ic under the lcd connector broken

Hey, long time no see. Thanks for the reply by the way. Unfortunately, I don’t see a MAX IC under the LCD connector. The only 2 MAX IC’s I see “look” physically fine and are the ones I circled. Which one are you referring to and is there some diode checks you’d like me to do?

I would also like to mention I plugged it into the charger and see nothing heating up abnormally under a thermal camera. Also, before I took it apart the switch does boot and everything. I looked at the usb-c port under the scope and looks good. I also tested the port with a QuanLi IBridge A3 and all show green.

My bad, I meant the +ALJ/MAX8969EWL53 ic which is CIRCLE in red down below. It delivers 5v to fan and joycon charging

It looks good and I get a .488 diode reading on the large cap above it.

Even though the usb-c port looked and tested good, I replaced it and all is well. There must have been an intermittent connection causing it to sometimes charge. Possibly the switch was dropped while charging which cause M92T36 to short and cause an issue with the port.