Hi,
If it works OK when the charger is connected but not when working on the battery only, there may be a problem with the battery.
Have you checked that the battery is fully charging OK (100%) when the charger is connected to the laptop?
If it is even so it may be failing to hold its’ charge.
Try replacing the battery and check if that resolves the problem.
Here’s a link to the ifixit Acer Nitro 5 AN515-53-55G9 Battery Replacement guide which should be of some help.
Here’s a link to just one supplier. It is only shown to give an idea of the cost of the part. There are other suppliers online that may suit you better. Just search for Acer Nitro 5 AN515-53-55G9 battery to get results.
crwdns2934105:0crwdne2934105:0
crwdns2934113:0crwdne2934113:0
crwdns2915270:0crwdne2915270:0
crwdns2889612:0crwdne2889612:0
2