Macbook always restart nonstop once i plug in charger
I have a macbook air 2017, been using the laptop for 5 years without any issue and suddenly the laptop is starting to do looping restart once i plugged in the charger.
When i unplugged the charger, the laptop back to normal.
Everything else seems fine, just I can't work with charger on and that's not effective..
Anyone know how to fix this?
Checking the hardware and all look normal. For software, no new app installed.
Thank you.
MacBook Air 13″, macOS 12.6