Everytime when im having sexual intercourse I feel my husbands penis is hitting something and it is uncomfortable? How can that stop?

Change position. He may be hitting your cervix which could be uncomfortable depending on the time in your menstrual cycle especially when you are ovulating. He may also be hitting your bladder. Make sure you void prior to sex. Changing positions can control the depth of penile penetration and can avoid the uncomfortable area.
Cervix pain. He is likely hitting your cervix which can be quite uncomfortable for some women. Try changing positions so that you can control depth and force of penetration. Also a different position may adjust the angle of penetration and keep him from hitting the uncomfortable spot.