Nice find, that explains a lot. A few answers for you:
On the config file: the dtoverlay=arducam_64mp line gets generated automatically after you install the 64MP camera driver, so you don’t need to add it manually. The problem was exactly what you spotted, the two entries ended up as one line:
dtoverlay=arducam_64mpdtoverlay=vc4-kms-v3d,cma-512
Those need to be on separate lines:
dtoverlay=arducam_64mp
dtoverlay=vc4-kms-v3d,cma-512
So going forward, after modifying the config file, always make sure the two lines are separated. And any change to config.txt needs a reboot before it takes effect, which is why splitting the lines and testing without rebooting still failed for you. Once you rebooted, the driver actually got loaded, which is why it started working.
On the clicking sound: yes, that’s completely expected. This camera has a motorized focus (autofocus) motor, and when the camera starts up and focuses, the motor clicks. So it’s normal to hear it click both at boot and when you take a picture.
On the warnings and errors in the output: I’ve run through this exact set before on test units. Things like:
No static properties available for 'arducam_64mp'
Camera sensor does not support test pattern modes.
Mismatch between Unicam and CamHelper for embedded data usage!
Delay request for control id 0x009a090a but control is not exposed by device /dev/v4l-subdev0
…are warnings. They don’t affect using the camera, and you can ignore them.
So to sum up: your original failure was the two dtoverlay entries ending up on a single line instead of separate lines, plus needing a reboot for it to take effect. Keep them on their own lines, reboot after any config change, and the warnings are harmless. Looks like you’re up and running now, happy shooting!