Why is my iPad Pro losing power while it's plugged into a charger?
If your iPad Pro loses power while plugged in, use an Apple or certified charger, try another cable, stop using it while charging (or turn it off), and consider that an older battery may be wearing out.