If you're located in the US, that complicates things. We have a shortage of repair parts due to the Coronavirus. I don't recommend an RMA at this time, because your unit could be sitting at the repair center for much longer than the 7-10 day turnaround time. Think 4 weeks.
In the meantime, I'd recommend backing up all of your data and factory resetting the phone. (I should have suggested this earlier) If the phone was behaving correctly before, it could be a firmware problem.
If that doesn't restore it to normal charging, then I would still suggest waiting until our repair centers have their turnaround time down again. For a phone especially, you want to keep the downtime as low as possible.