Father in law gave me his Micra sseing he gave up driving but faults have appeared.

Its a 2012 Automatic and when I use the foot brake whether stationary or to slow down there is a tap tap tap coming from the front, I thought it was the brakes but on inspection it was the headlight pivoting when the break was applied !!!!.
when you switch the headlights on this doesn't happen, its only when they are switched off.
2nd fault digital readout showing what gear the shift lever is in sometimes the D (drive) or P (Park) or R(reverse) disappears albeit the mileage etc still stays.
lastly after two weeks of the above now the yellow engine management light comes on, I do wonder if this is all connected