After some fiddling around in debug, it is possible to add more than four gun mods to your weapon. Check the description of your gun, it should show a few slots looking like this.
These show how many, and what kind of, attachments are on your gun. Count 'em up, and you get more than four. Just gotta get different type weapon mods and you should be able to break four.