I think I also had this issue on stock, where the lockscreen shortcuts randomly disappear. Sometimes it's just one of them, other times it's both. People mentioned Device Controls had something to do with it, but I never figured out what to do. I have to go in settings and reapply. I only want flashlight and qrcode shortcuts, everytime I actually need the flashlight it's not there.
Anyone else had this issue?