If a person tried to operate the slide with the lanyard loop lock "on" then the hammer strut can be bent. If this happened then you have no choice but to return the pistol to HK and have them replace the hammer strut. The strut is so thin that I do not recommend trying to straighten it out. A small fatigue crack could have disastrous results if you pull the trigger and the strut has broken (nothing will happen when you expect a boom, the hammer will not even fall).
It is a warranty repair so call HK for a RAN and return the pistol to them. If you bought it new and it came this way, the dumb-ass dealer bent the strut because they did not unlock the LL before checking the pistol. They come locked usually and with a white tag on the frame stating the gun is locked and to unlock it before operating. Some dealers have trouble reading it seems.
So, if the dealer bent it (by the way, he will never admit to it so don't ask) he should be willing to return it to HK for you so you do not have to pay shipping. If you bent it, man up and don't try to get someone else to pay for your mistake.
Now, before you get too excited. Do this. Remove the lanyard loop and reinstall making sure the hammer strut spring is down in the little recess on top of the lanyard loop, and rotate the spring a half turn. My Tactical was fine when I bought it, but I was playing around swapping hammer springs and suddenly it quite dropping the mag properly. When I checked the hammer spring it was hanging up on the ledge on top of the lanyard loop and causing the spring to bind, project into the mag well, and hang up the magazine.
Try that first and if that does not solve the problem, return the pistol to HK for hammer strut replacement.