My guess is you're missing social cues, and that you're actually unable to read what is 'normal', for whatever reason.
So you being 'nice' could actually be a bit abrupt, it could be too nice, it could be over the top for that situation, it could be 'too personal' for someone who is a stranger, etc, etc....
Many reasons for it. Some people lack empathy - and often they will think they are very empathetic. My DSis is like that, she hurtles herself into situations to 'help' because she is so 'empathetic' but really she's just made it up in her head,
Some are over the top enthusiastic, perhaps mild ADHD (putting my own hand up for this one), but I recognise it in myself, but I still struggle occasionally to not monopolise the conversation.
Facial expression blindness, not recognising the awkward look someone gives they are uncomfortable.
Etc, etc, etc....
What you need to do is ask a very good friend who has seen you in these situations, and ask them to be honest, which might actually be quite painful. Because you CAN'T see it, so can't tell us what it is that you're doing to trigger the reactions.