You should be perfectly fine trimming your games.
Nintendo cant see the exact bytes your cart is. That would be way to extensive (or they might to do a hash check ... but we dont know they do).
To set your mind at ease, all my personal dumps have been trimmed, I have played online and so on. No issues.