I've repaired those a few time with variations on the above methods.
I remove the headlight.
Make sure the broken bits fit perfectly. Clean them thoroughly with brake/carb cleaner or, alcohol. Something which cleans and evaporates easily. Use some thin aluminium section hot glued to the headlight to align everything exactly.
I can tell you from experience, use a release agent wherever the epoxy could possibly contact the alloy. Epoxy sticks Really Well to alloy!
Bond on the broken section with epoxy resin glue. I generally use 5 min epoxy, then leave 2 hours. Remove the hot glue and alloy.. Key the reverse side with 80 grit and paint with fast epoxy resin. Add two precut pieces of diolen fabric. Stipple in just enough resin to wet out the diolen. Do NOT use masses of resin! I try to cover two sides of the bracket if possible, usually the reverse and at least one side/edge, it's much stronger that way.
Diolen is a fabric midway between fibreglass and twaron (kevlar ), it's stronger and more flexible than 'glass and generally thinner and more pliable than twaron. Two layers should be about 0.3mm thick, three layers will take it to just under 0.50mm. So it's not hugely visible. If you have any missing bits, cut up or tease apart bits of diolen, mixed with resin, you can use those as a filler. Work quickly and leave for 24 hours. Trim any sharp edges.
Diolen is cheap, easy to cut if you use decent scissors, comes in black, so you don't have to add a die or paint afterwards, and it's a bonkers strong fabric once cured. If you can, take the headlight, or a broken tab to whomever you get the resin from. They're not all the same. Read the instructions carefully and measure accurately, epoxy isn't like polyester/fibreglass resin, the ratio's have to be spot on.
Some companies have small trial packs of resin and sample pieces of fabric, probably all you would need.