Almost sounds like you want a solar MPPT charge controller. Add 48v battery to buffer the unstable input...
https://www.amazon.com/BougeRV-Controller-Temperature-Regulator-Negative/dp/B09JZGBDPB/ref=sr_1_1_sspa