Try cleaning the port out with a tooth pick or needle. Most of the time the charging port issues are caused by pocket lint build up in the port
Discussion
micros are worse for this too
though if you can't get it to behave after a gentle scrape with a needle, maybe try compressed air, and then after that, take it to a repair shop to get the socket replaced
ah yeah, this makes me think of something
someone should make rubber dummy plugs with low profile precisely for keeping USB-C sockets from getting gunked up
of course someone already did
not an ad, just the easiest thing to find: https://www.amazon.com/Silicone-Portable-Storage-Compatible-Samsung/dp/B0C3QRJR34/ref=sr_1_1
i ordered a pack of 20, this is a good thing to keep these sockets clean when not in use, will also reduce corrosion
I tried blowing it out with some compressed air, but that didn't really help all that much. I managed to finally get it to stay charging enough to get it back to 100% so that should buy me a good 3-4 hours of battery usage. (another reason why it might finally be time)
I should try going at it with a needle though.