There's one thing that will put the torpedoes behind your target whatever you do and that is failing to open the torpedo tubes before you fire! The TDC calculates the shot for when you push the fire button, but when you do, safety protocols keep the torpedo from firing until the tube door is open. That puts it behind the target.
Which is usually better than a contact explosion against the closed outer torpedo door.