Gnome behavior in Grymforge has been a little vexing for a while, it's especially annoying when, if caught in the crossfire fighting their captors, they turn hostile to you. I will sometimes try and take out a few guards before attacking Thrinn, if they find a body they'll start looking for you even during combat, which exacerbates the problem.