Hand fitting mainsprings is really tricky.
Unless you have experience removing and refitting mainsprings on scrappers or know what mainspring would replace it when you damage it, I suggest you open the barrel and attempt to clean and lubricate the spring without removing it, of course, thats not ideal, but much better than mangling the spring or being unable to refit it at all. Especially the case for smaller calibers/barrels.
I think i must have practiced for many hours in total, repeatedly removing and refitting the mainspring, with about 10 different mainspring barrels on scrappers before I felt confident to do it for real, and I was long into the habit of wearing safety glasses due to unexpectedly losing grip at the wrong moment and it exploding out of my hand. ...maybe I was just a slow learner.