Is your laptop something like framework which has open source firmware?
I(and many other people) have a similar issue with usb-c charging not working consistently. I've been meaning to try one of these new smart models to help me debug the issue.
I had to reboot my laptop a few times though until I got to this, but it was a fun experience anyways.
At this point open source isn't as much advantage as long as the firmware is not encrypted :)
I'll try handing it off to one of these new frontier models.