Hi Maverico1730,
Thank you for posting, I am here to help you today.
Possible cause of this if it's performing a task that requires more power than the charger can supply, a common issue with high-performance tasks like gaming or video editing that heavily utilize the dedicated NVIDIA GPU.
Your battery is likely draining while charging because your device is consuming more power than the charger is supplying.
For the meantime try to update your Windows and also the Nvidia Drivers.
looking forward to helping you out. If you need more help please let me know. If the answer is helpful, please click "Accept Answer".
Best regards,
Jansher