Are you using the charger that came in the box? Most of the time i need to restart before beign able to charge with a pd charger too. I think that's on oneplus though since it happened on oos too.I found that my phone only charges when powered off when using 8.6.6.