Adding my name to the list. This issue just started happening to my MacBook Air M1. I've tried all the fixes listed in all 19 pages of this thread and none of them have stopped it for more than a few minutes. Any set of headphones I plug into my headphone jack "click" every second or so intermittently while doing anything audio such as streaming youtube, using Unity3D, Unreal Engine or Ableton 11. It is literally maddening to the point where I am going to hook up my old PC to get work done.
Model Name: MacBook Air
Model Identifier: MacBookAir10,1
Chip: Apple M1
Total Number of Cores: 8 (4 performance and 4 efficiency)
Memory: 16 GB
System Firmware Version: 7459.141.1
OS: macOS Monterey 12.5