Knurl those bolts just below the head to make them captive?
I’m not sure how I’d do that? They are stainless as well so not sure if they’d oblige?!
I spied some long M8 stainless hex bolts yesterday which got me thinking. I turned one down to 6mm and cut an M6 thread on the end. I then milled the head to produce two larger flats. The idea being that I could perhaps fix a small anti rotation plate to the bracket. I then turned and faced the head to improve the appearance. Somewhat confusingly, during the test fit the bolt happily stayed in place without any further assistance. How perverse. Further investigation required but perhaps just having a larger head (than a cap head socket screw) is enough to solve the issue?