Okay, so this is pretty much a known issue, and at this point it’s most certainly, pretty much beyond reasonable doubt, a hardware issue. Multiple people have reported the same problem with charging flipping between charging and not charging states.
However, my case suggests that this behavior can eventually lead to one of the ports becoming completely unusable for charging a laptop. I hope someone takes notice and looks into fixing this, because that’s a pretty serious bug.