Clicks only with headphones, cubase 12 on MacBook Pro M1

I’m having a weird issue with cubase 12 on MacBook Pro m1 Monterey (12.3.1): when using it without audio interface it works smoothly when audio is streaming through the built in speakers, but it makes it unusable when I plug in the headphone, lots of clicks and stuttering. Using an audio interface there’s no problem with headphones

I’m having the same problem. Any solution?