Unfortunately what you mentioned can be a common occurrence in Muslim communities. Some parents bring their children up in a way where they fail to explain the reasons behind certain Islamic practices and rather just force them. For example, instead of parents explaining the philosophy behind hijab and how it was a practice of the pious women, they may just force their daughter to wear it with the threat of being beaten if they don’t!
Knowledge and wisdom should be used when teaching anyone about Islam.
The best way to overcome this would be to research into Islam and it’s laws.
When you understand the religion more and gain knowledge, it should solidify your own faith more and make you able to distinguish between the right and wrong ways in which Islam was introduced to you.
May Allah grant you success