Z angielskiego forum:
B1D64 has a couple of sub codes:
B1D64-01 is Left Headlamp Swivelling Motor - General electrical failure.
Possible Causes: General electrical failure - Left headlamp swivelling motor error.
Action: Check the headlamp connections, clear the DTC and re-test. If the DTC remains install a new headlamp
B1D64-04 is Left Headlamp Swivelling Motor - System internal failures.
Possible Causes: System internal failures - Left headlamp swivelling motor error
Action: Check the headlamp connections, clear the DTC, switch off the ignition and allow sufficient time for the module to power down and re-test. If the DTC persists, install a new headlamp
B1D64-87 is Left Headlamp Swivelling Motor - Missing message.
Possible Causes: Missing message.
Action: Check the headlamp connections. Check power and ground supplies to headlamps AFS modules. Clear DTC and re-test. If DTC remains install a new headlamp.
In the presence of both B1D64/65 codes I would first suspect a common cause rather than two independently faulty headlamps. There is a single headlamp control module in the passenger footwell (UK car). It doesn't have a fused supply as it is switched on directly by the central junction box/fuse box behind the rear seats using its main battery supply, however the motors themselves are fused with F23 5A in that same fuse box. When I was testing out the options for retrofitting the LED headlamps to my 2010 I managed to blow that fuse. Also check F49 and F50 (both 5A) as well. They are clearly numbered, but you do need to remove the rear seat cushion, back and cut open the soundproof lining behind it where it is perforated in the middle to access the fuse box.
Failing the fuses I'd check the wiring between the module and the lamps then look at replacing the module before the lamps themselves. The LIN bus used for controlling the AFS motors is spliced between both lamps so with B1087-83 being stored as well the common module might be shot, but it may be the checksum error is simply because one or both of the motors is not responding because the power supply is off.
I link do tematu:
https://www.jaguarforums.com/forum/xj-x351-53/adaptive-headlight-problems-187990/