While your laptop complaining now does point to the charger being the problem, do keep in mind most laptops charge with 20 V. And annoyingly there are USB-C chargers out there, which can only do 5 V or 20 V, but are missing the 9 V and 12 V (usually used by phones) and the 15 V used for stuff like the Steamdeck or Frame (looking at you, Dell).
While your laptop complaining now does point to the charger being the problem, do keep in mind most laptops charge with 20 V. And annoyingly there are USB-C chargers out there, which can only do 5 V or 20 V, but are missing the 9 V and 12 V (usually used by phones) and the 15 V used for stuff like the Steamdeck or Frame (looking at you, Dell).