I was having the same problem, but after flying extremely close and at a crazy angle I was somehow able to redock the turret, its been working fine since.
But now for some reason I can make turrets as big as I want, the green docking box no longer seems to limit turret size in three (Four?)...