I had this issue when I first purchased my mac Studio in 2022. Drove me nuts until someone suggested I turn off Private Relay (Choose Apple menu > System Settings, click [your name] at the top of the sidebar, click iCloud, click Private Relay, then turn off Private Relay.) That solved the problem instantly. Give it a try and good luck.