My laptop model is Acer Aspire V3-574. When the laptop is on and I connect the charger, it doesn't connect. Rather it keeps making this beep sound periodically. Sometimes I keep removing the charger and reconnecting it in different angles, rotate it. Then it gets connected and charges for some time. But after that the charging stops and the laptop starts making the beep sound again. However, when the lid is off and the laptop is in sleep mode, the charger connects and charges the laptop without any problem. How can I solve this problem?
I should mention that I changed the battery in the later part of 2021. Battery wear level shows 15%.
[Edited the thread to add model name to the title]