Check the main earth to the engine there are 2 points one horizontal stud for the main loom coming out of the primary next to the starter motor and one about 3 inches away vertical from engine cases and takes the battery negative lead this one plays up as it corrodes between the threaded stud and the aluminium case due to water running across the case undo clean em both up and the studs too to make good contact that should sort it also being a 2011 bike rubber mounted under the swing arm pivot there is a braided earth strap from the cases to the frame utilising the stabiliser link bolts pop them and clean and redo this should eliminate the problem
worst case the starter starts to twat about due to bad earthing just done them last week on my sporty build and redoing the isolator rubbers on it a 2004 bike