I guess its an issue with the incomplete audio support for this board, and the audio+Ethernet expansion board in particular you are probably using?
Audio support for the OPi Zero 2W is not part of mainline Linux, but patched inside along with Ethernet and stuff of the expansion board. It never fully worked, and more broke when things were ported from Linux 6.12 to 6.18.
Some part of the story can be found here: No sound card detected for Opi zero 2w