It could just be the flash itself was overheated. Or event that glass severed the cable during removal(although it’s quite protected in this model from back glass getting into the phone in that area. The flash is part of the flex cable that also contains all the buttons as well as the rear microphone. If the flash is the only thing that doesn’t work, replacing that cable is the first thing I would try.