Hi @yozid ,
Create a [https://www.windowscentral.com/generate-battery-report-windows-10|Win 10 battery report] and check the status of the battery. Compare the ''Design Capacity'' value versus the ''Full Charge capacity'' value.
It may be that the battery is failing and whilst the charger can charge the battery when the laptop is off, trying to charge it and run the laptop at the same time may be too much for it to handle.
Worth checking anyway if only to eliminate it from the equation