I prefer character-driven stories. Unlike most here, I begin to fall in love with them even before I start writing the story. This is because I normally write little bios on the lead "actors" and as I write them into the storyline I have continually and three-dimensional real people. Well, at least in my head. ππ
My take on this is that there must be a piece of the character inside you as you write and work with them. With the books I have written and am adapting for Lushstories, those characters have lived with me since 2021. Their never-to-be-published background information now runs to several A4 pages.
As for killing off a character or putting them in an awkward situation? I don't see that to be a problem, I do the latter all the time and you can always resurrect a character in another story if you are in "love" with them. Though, I don't see that scenario happening to me.
So, to answer your question: I do become attached, and even deeply attached to the characters I have been working with for three and half years. But my attachment would never stop me from putting them in harm's way.