Unusual behavior with PA-B6

I have a PA-B6. I use it with a 2019 16" Macbook Pro and an iPhone. I have the Mac connected to an external monitor with the lid of the Macbook closed.

Whenever I connect or disconnect the iPhone to the charger, the Macbook is affected:

  • if I’m using it, the screen will lose its signal for a moment, and when it returns, the Macbook will be locked

  • if it’s sleeping, it will wake up and be locked

Has anyone else come across this issue?