Maybe its something in the skin which is bothering you. Have you tired peeling it and see if that makes a difference?
Another possibility is its only the raw tomato you have problems with. Its a known thing that cooking a food alters its proteins, and hence the body can respond differently to a food cooked vs raw. You could try cooking it to see if that makes a difference.