Allergy
I would also note that when Gollum was tied with elven rope, he was in real pain, a pain not caused by an excessively tight knot. I am not sure he has a 'hatred' for things elven or good, or that it is only a 'hatred'. It might also be a magical allergy. Gollum might react poorly to the boats the Fellowship was given, the Phial of Galadriel, or any other product of elven craft where the maker has put something extra in the making.
I could only attribute it to corruption caused by the Ring. While perhaps it might have been possible to recover from such an effect after having borne the Ring so long, I would be dubious.
|