Exclamation [Q] Doesn't recognize Contacts with the same 7 digits but different area codes

Have an issue with my phone that couldn't find a solution to.
If I have two contacts with the same 7 digits but different 10 digits "eg. different area code" it won't be able to identify it, as if it reads only the last 7 digits and identify the first contacts alphabetically to it which makes me answer thinking its someone whereas it is actually someone else.
Never had this issue with my Samsung phones before, it doesn't seem to read the whole thread of digits in a contact.
tried installing different dialers, it didnt work.
can anyone help please.
thanks,