Never thought of looking in the manual. Thanks for replying with the image. I did contact them for the part but they don't sell it separately. I went to one of the local motorcycle garages and they gave me a retainer from a different headlight assembly. Looks similar. I might have to modify it a bit but I will update if I get it to work..The service manual refers to it as a "headlight bulb holder". Did you try contacting a Yamaha dealer?
View attachment 41991