I'm getting tired of him...

My boyfriend is amazing but sometimes I get the urge to cheat. After getting hurt really bad, I feel like I have an attachment issue where it is hard for me to feel 100% emotionally involved with someone. I try and try to make things work and suppress my urges of wanting to be with someone else. Someone help?!