Me too, along with semolina, sago and anything similar. Primary school force feeding trauma, literally.
Custard for me. Same reason. You *had* to have desert. If you didn't like the desert on offer then you had to have custard. Weirdly, the only exception to this is if I have made the custard myself, and can put it straight onto chocolate pudding without delay. Definitely psychological.
On the other hand some foods and textures make me feel quite ill. Even the smell of Peanuts will make me have. Hazlenuts and almonds make me feel physically sick if I can taste them. Don't like the texture of rice or lentils or pinto beans. I prefer crisp foods - don't really like soggy things. Also don't like soggy things touching crisp things - baked beans should be served in a ramekin if having a full English in my humble opinion!
Some of the above may be a reflection that I think I am somewhat neurodiverse (no diagnosis though).
Alcohol I don't have a problem with, although there isn't much that I actually like, and I have no interest in getting drunk. I have to like the taste of something to enjoy it. Some red wines, most ciders, mead, some sweeter cocktails, and oddly enough - whiskey / whisky (although I prefer flavourful smooth ones rather than peaty ones).
Going back to the OP however, if invited to dinner I will eat what I can, to be polite. Usually if going to a dinner or a work event where there will be "canapes" or some such, I'll make sure I eat something before I go so I don't get hungry.