Does this occur when using the headset with any other device? Have you tried another wired headset do they produce the same noise? There are a few similar reports of this in the community but, no clear fix.
I’d recommend submitting this as feedback via your settings app on your Nothing phone. Settings -> System -> Feedback.