Every MacBook with metal enclosure from the last 15 years had the "buzzing". Quite a few people reported it to Apple, but nothing ever came of that, so Apple doesn't seem to think it's a problem.
It happens with both USB-C charging and MagSafe, but the intensity varies.
I would consider it slightly unpleasant, but have never heard about anyone getting an electric shock.