but most likely integrated solution is to have a dedicated USB Charger, a modern cache battery that provides USB-C PD output, and one of these cables for powering a standard e-bike headlight:
let the headlight and the dynamo stuff be independent gizmos, with serial integrations between them that don’t all have to work