In addition to countersunk allen bolts, red loctite, and filing the dropout, use a zip tie around the wiring loom to the dropout/frame.
Your last picture was extreme where you cut a major part out. I didnt have to do that, i tried to avoid that. I see you had no choice but you didnt know you...