this look to me like some sort of buck or buck boost board (round), because the light take in one 18650 or two CR123. The rectangle board is for switch and Attiny microcontroller. It seem like maybe part of the connection to the switching driver (round) may be bad. If the SOS and disco mode work, the microcontroller seem to be working. Unfortunately difficult to debug without oscilloscope.
It sound to me that you can easily replace with an online driver of 22-23mm. If you just use single 18650, there are many driver available with lot of modes and BLF firmware since your LED is only a single XM L2 LED.
Cheap driver with sideswitch: https://www.aliexpress.com/item/5-Mode-1Mode-Input-3V-15V-dc-22mm-LED-Driver-For-Cree-10W-T6-XML-T6/32801253961.html
Lexel seem to have many driver, maybe you can contact lexel.