The lights are flashing on the lens of my mini 8 / mini 9

Try reinserting the batteries with the lens in the open position which should hopefully reset the issue. Failing this, the camera would require a repair. If the camera is still within the warranty period and you have retained the proof of purchase, this should be covered – subject to inspection. You can book a repair at https://repairs.fujifilm.eu/en/fujifilm-repair-centre/