Hello Apple1621.
Thank you for using Apple Support Communities. It sounds like you're experiencing some unique issues with your iPhone 12 Pro. Specifically, you're hearing static noises while charging and other sound issues as well. If this is the case, we'd like to look into this issue with you. If this sound is coming from your speakers, you might want to review the following resource for help with distorted sound coming from your iPhone. Please check out this link:
If you hear no sound or distorted sound from your iPhone, iPad, or iPod touch speaker
You also mentioned that you erased your device and set it up as "new". Did you perform a restore using a computer or did you erase the device via the Settings menu? If you restored your device as "new" using a computer, and you continue to experience this specific issue, please reach out to Apple Support for additional assistance. You can reach them by going here:
Get Support
We hope this information is useful. Kind regards.