I'm facing the same issue my M2 Macbook Air 2022.I charged my Macbook.And then charging started and after maybe 3-5 seconds, charging stopped. and then started again and stopped again.This case occur again and again.However,I can charge well when I restart my Macbook and don't login.When I logged in this case occur again.
Please let's me know, when you all guys find the solution.