Hi,
Recently (31st of January) I had this problem with a Raspberry Pi Zero 2 W.
I flashed Raspberry OS using the official Imager to a MicroSD card. I selected Raspberry Pi Zero 2 W; Raspberry PI OS 64 Bit; London/UK; Wifi network details; enable SSH; disable Raspberry PI Connect. The Wifi network was from Hyperoptic in London, not sure exactly what access point they use or if that's relevant.
The Raspberry Pi booted successfully after powering it on, and it did connect to wifi and it was accessible via SSH. All good.
I connected to it over ssh and did "apt update; apt dist-upgrade". After powering it down and powering it back up, it no longer connected to wifi or was accessible via ssh.