Are you sure you've got the right replacement main spring?
Any time I've removed and replaced a mainspring, I've cocked the lock to compress the spring, put the mainspring vise on and snugged it down, then eased the hammer down as I tripped the lock.
To replace, I put the (new) spring in the vise, tighten vise down just a couple of turns to compress the spring a very little bit. With no spring in the lock, I trip the sear so the hammer goes all the way down, put the spring (still in the vise) into position (peg in long arm into lockplate hole, tab on short end into bolster, etc). At that point the end of the long arm is just barely on the tumbler. Bring the hammer to the half-cock position which should put the end of the long arm squarely on the tumbler and make the spring vise rather loose on the mainspring. Take the vise off. Hammer/cock stays on the tumbler throughout the process.
That's how I've done it, never broke a spring yet, though I wouldn't be surprised to find there were slicker ways of doing it.