This sort of thing isn't that weird in small cheap devices. They more or less demand clean power, which is why the Pi4 is heavily recommended to be used with their official charger.
I find it gets unstable with cheaper USB C chargers.
I specifically buy high quality chargers/cables/battery packs for my embedded work since they are so intolerant of bad power