I have a 2019 16" MBP which I use to professionally develop apps and I too am struggling with charging the laptop.
It often says "Battery not charging" and I have even gone into the System Preferences and disabled any software management of the battery as well as rotating USB-C ports and trying my second charger but it seems doing *anything* slightly taxing on the CPU such as running XCode will now drain more power than the laptop is taking in.
This is critical and I need some answers please Apple as my work-day has become a lot more complicated by having to completely power off the laptop and not use it for an hour just to charge it up again...